How to detect bit depth of USB audio stream?
Posted: Tue Dec 20, 2016 4:14 pm
Hi
We want to implement a high-res file detection into our USB-Audio device (derived from the xmos app_usb_aud_xk_216_mc example application) – an LED shall indicate to the user whether the audio material streamed fulfills the High-Res-Logo requirements or not (more than 16bits per sample OR Fs>= 88200). Samplerate detection is easy since a function to change PLL-configuration is called each time the samplerate changes (audiohw.xc). I’ve implemented that and the LED already indicates streaming formats above 88.2kHz, but how do I detect the bit-depth of the audio stream? Where in the code is this negotioated between the host and the audio device?
Regards
Markus
We want to implement a high-res file detection into our USB-Audio device (derived from the xmos app_usb_aud_xk_216_mc example application) – an LED shall indicate to the user whether the audio material streamed fulfills the High-Res-Logo requirements or not (more than 16bits per sample OR Fs>= 88200). Samplerate detection is easy since a function to change PLL-configuration is called each time the samplerate changes (audiohw.xc). I’ve implemented that and the LED already indicates streaming formats above 88.2kHz, but how do I detect the bit-depth of the audio stream? Where in the code is this negotioated between the host and the audio device?
Regards
Markus