Go Down

Topic: Playing USB Audio through Due (Read 2686 times) previous topic - next topic


I am trying to use the Due to act as a USB Audio class device. Specifically, being able to plug it into an Android and allowing the Due to play music using its onboard DAC.

I know the hardware is capable of doing this, as this video shows a hacked version of the Google ADK firmware being loaded onto a Due and playing USB audio through the DAC:

But I cannot figure out how to do this with the official Arduino SDK. The Audio library https://github.com/arduino/Arduino/tree/ide-1.5.x/hardware/arduino/sam/libraries/Audio shows me one half of the picture - how to send music to the DAC.

But I cannot figure out how to make the Due identify itself as USB Audio class device to the host machine, and how to read audio data from the host. Any pointers on how to do this?

Thank you in advance.


Learn anything interesting?  I'm also trying to make the Due appear over USB as an Audio device.  Using Atmel Studio. 

I found some interesting examples in LUFA for AVR8.  And examples for ASF as an audio host (acting as an MP3 player).  But both seem rather different from a Due (AVR32) as an Audio device.

Go Up