Paul Braman wrote: > I am opening a USB S/PDIF capture device as "plughw:<card>,0" and > using snd_pcm_readi to read frames of data. I'm setting the capture > as 48 KHz stereo. As long as I feed 48 KHz into the device I can get > good audio out. If I, instead, feed 44.1 KHz into the device my > capture is really capturing 44.1 KHz audio out. > > That seems normal ... mostly ... S/PDIF is a purely digital interface; you get exactly those samples that are received. > However, how would I be able to detect a change in input to know that > my sample rate has been adjusted? S/PDIF streams carry meta information in the channel status bits. However, this is not available on USB devices. > Also, if I get some compressed audio (AC-3, DTS) I assume I need to > carefully inquire in the byte stream to check for embedded compressed > audio. The channel status would have the non-audio bit for that. Regards, Clemens ------------------------------------------------------------------------------ Try New Relic Now & We'll Send You this Cool Shirt New Relic is the only SaaS-based application performance monitoring service that delivers powerful full stack analytics. Optimize and monitor your browser, app, & servers with just a few lines of code. Try New Relic and get this awesome Nerd Life shirt! http://p.sf.net/sfu/newrelic_d2d_apr _______________________________________________ Alsa-user mailing list Alsa-user@xxxxxxxxxxxxxxxxxxxxx https://lists.sourceforge.net/lists/listinfo/alsa-user