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.