[Pianod] libao settings testing
Jimmy Pop
jimmypopali96 at gmail.com
Wed Apr 17 15:20:10 PDT 2013
Leaving the dev option off, it uses alsa, and auto picks device "front",
and streams smoothly, the default_driver and ao_driver_id("alsa"), return
the same value as well.
I have an idea that it seems to be correlated with my asound.conf and the
extra processing (?)
I will check CPU usage when I get home.
On Apr 17, 2013, at 3:03 PM, Perette Barella <perette at barella.org> wrote:
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
_______________________________________________
Pianod mailing list
Pianod at lists.deviousfish.com
http://lists.deviousfish.com/listinfo.cgi/pianod-deviousfish.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.deviousfish.com/pipermail/pianod-deviousfish.com/attachments/20130417/39657500/attachment-0003.htm>
More information about the Pianod
mailing list