USB audio on Teensy 4.1

Jean-Marc

Well-known member
I saw some USB audio code in the latest SDK for the Teensy4.
Is there an example for Audio output?
Is the audio library supporting USB audio?
 
I've not used it, but the audio tool does appear to support USB audio:


There is the example: Audio -> HardwareTesting -> WavFilePlayerUSB that plays songs from the SD card to USB output.

You would need to set the USB type to one of the types that support USB Audio:
  • Audio
  • Serial + MIDI + Audio
  • Serial + MIDIx16 + Audio

I believe this is for the normal USB connection, and not the USB host connection that the Teensy 3.6, 4.0, and 4.1 provide.
 
This is indeed using the teensy as an audio device.
I was looking at connecting a usb audio card to the teensy used as host.
Just another way to output audio next to SPDIF, I2S...
I am experimenting some problem with my VGA library while outputting audio to I2S or SPDIF simultaneously. Just wanted to try over USB if it ever did exist...no pb....
 
Back
Top