[Pianod] libao settings testing
Perette Barella
perette at barella.org
Wed Apr 17 15:03:16 PDT 2013
Choppy sounds like an audio buffer underrun. libao says the ALSA driver supports buffer_time ao_option:
"buffer_time" - Override the default hardware buffer size (in milliseconds).
The ao docs don't indicate a default, so I guess try some different values and see what they yield.
audioOutDriver = ao_driver_id("alsa");
ao_append_option(&ao_options, "dev", "stereo3");
ao_append_option(&ao_options,"buffer_time", "250");
While you're at it:
fprintf (stderr, "audioOutDriver=%d, defaultDriver=%d\n", (int) audioOutDriver, (int) ao_default_driver_id());
To see if ALSA is the default driver. If it's the default, one less variable to consider. If not, do you know what is? Perhaps this would indicate some layering that's making ALSA too CPU intensive compared to the default. Try 'top -o cpu' while it's being choppy, see if you're running at 100% (0 idle).
"stereo3", third output? Have you tried leaving this option out (but selecting ALSA driver) and check behavior?
Perette
On 2013年04月17日, at 3:43, Jimmy Pop wrote:
> Starting at pianod-137
>
> I got the folowing to work using the alsa system
>
> ...
>
> Though through this success, I am having choppy audio now, with a single stream, or multiple streams with a RPI and this method, but ao_default_driver_id() streams smoothly
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.deviousfish.com/pipermail/pianod-deviousfish.com/attachments/20130417/5fb6396a/attachment-0002.htm>
More information about the Pianod
mailing list