Forum Rule: Always post complete source code & details to reproduce any issue!
Results 1 to 2 of 2

Thread: Direct read of ADC and transmit to DAC on Audio board

  1. #1
    Junior Member
    Join Date
    Sep 2019
    Posts
    19

    Direct read of ADC and transmit to DAC on Audio board

    I am trying to locate a dataset in the libraries which will give me access to a dataset containing the most recent 16 bit ADC sample from the audio board L &R line inputs. If there is a procedure which will deliver it then - ok. If not I will write my own. Likewise is there a procedure which will immediately write a 16 bit value to the L & R DACs.
    Can anyone help ?

  2. #2
    Senior Member PaulStoffregen's Avatar
    Join Date
    Nov 2012
    Posts
    20,806
    The "queue" objects are meant to give you access to the raw audio data.

    https://www.pjrc.com/teensy/gui/?info=AudioRecordQueue

    These are a bit tricky to use. But then so is keeping up with the full audio rate data.

    The other option is adding your audio processing code into the library, so it runs as any other audio object would. Here's some documentation.

    https://www.pjrc.com/teensy/td_libs_...ewObjects.html

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •