|
Computer Audio Asylum Music servers and other computer based digital audio technologies. |
For Sale Ads |
Use this form to submit comments directly to the Asylum moderators for this forum. We're particularly interested in truly outstanding posts that might be added to our FAQs.You may also use this form to provide feedback or to call attention to messages that may be in violation of our content rules.
Original Message
Update: PulseAudio currently does not support dynamically changing sample rate
Posted by Christine Tham on November 30, 2010 at 13:29:50:
To change the sample rate that every stream is converted to, you need to kill and restart the PulseAudio daemon.
Extract from PulseAudio mailing lists:
No, this is not something we support at present due to the practical
problems that this presents.
Whenever changing the sample rate "mid stream" you'll obviously get some
kind of click/pop as the device is closed, reconfigured and reopened, so
this has to be avoided.
The alternative is to take the first sample rate and stick with it. But
then consider playing an 8kHz effect sound and then playing a nice
196kHz audio track just a moment later... it would be converted to 8kHz
which is almost certainly not what the user would want.
So whichever way you cut it, there is no nice solution to do dynamic
sample rate switching of the hardware and the only logical and practical
solution is to use a fixed sample rate on your system and covert to this.