How to set up TDM input and output on CS42448 Board?

Status
Not open for further replies.

cow_n_berg

Active member
I managed to solder two CS42448 Boards from OSH Park https://oshpark.com/shared_projects/2Yj6rFaW
in this thread: https://forum.pjrc.com/threads/54666-Sound-clips-to-be-sent-to-one-of-three-devices

Playing WAV files to the 8 output channels goes well. Then I had this new idea to add a microphone. So I tried adding a tdm input object into the Audio System Design Tool like this:

Screenshot_2019-02-20 Audio System Design Tool for Teensy Audio Library.jpg

The music quality goes bad: half speed and static noise. I am probably messing up the bits. I tried this with patchCords to other channels as well, no luck. As soon as I remove the tdm input object, the music plays normally again.

What am I doing wrong?

(I'm including the code as well.)
 

Attachments

  • TestAudio.ino
    2.3 KB · Views: 60
The poor audio library is starving for more memory!

Code:
        // CS42448 Sound Board initialization
        AudioMemory(16);

You're trying to bring in 16 channels from TDM plus 2 more from WAV player, and then do stuff with them... using only 16 buffers!

Feed it some more memory. :)
 
Status
Not open for further replies.
Back
Top