Play back buffer

Store Forums Audio Hacker Discussion and Project Ideas Play back buffer

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #14235
    D S Sreedev
    Participant

    Hi, I went through the Sampler_8bit code. As you mentioned, it’s really a good starting point to understand the API’s. In the code, the ‘playbackBuf’ is initialized with value 128. Is it just a value to write to DAC during the first ISR or 128 has any significance?
    I think from the second ISR onwards, the ADC read value (signal) during the previous ISR and stored in ‘playbackBuf’, is fed to the DAC. Is my understanding correct?

    #14236
    Michael
    Keymaster

    Your understanding is correct. The value 128 is the middle value for an 8 bit value which has a range of 0-255. 128 represents the baseline of a waveform, or silence.

    • This reply was modified 2 years, 7 months ago by Michael.
    #14239
    D S Sreedev
    Participant

    Thank you very much for the clarification…

    #14266
    donyD
    Participant

    interesting advice, thanks

Viewing 4 posts - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.