[vorbis-dev] libao alsa output

R.L. Horn eastcheap at fastmail.fm
Wed Mar 26 14:09:37 PST 2003



On Wed, 26 Mar 2003, Jon Ellis wrote:

> Looking at ao_plugin_open in ao_alsa09.c it makes a call to
> snd_pcm_hw_params_set_period_size when i think it should be called
> snd_pcm_hw_params_set_buffer_size. And in fact, making this change
> fixes the distortion for mp321.
>
> This is my first look at the alsa api so i don't really understand the
> significance of this change.

As I recall, applications generally shouldn't call *_size() functions at
all unless they need fine-grained control over buffer sizes.  The library
provides *_time_near() functions so that you don't have to worry about
these things.

I had some trivial problems with the ALSA code which I fixed by entirely
rewriting the plugin to use my own ALSA streaming library...and then never
quite getting around to telling anyone. :)

If there's interest I could make the code available (assuming I can get my
brain working well enough to remember something I did last June...)

--- >8 ----
List archives:  http://www.xiph.org/archives/
Ogg project homepage: http://www.xiph.org/ogg/
To unsubscribe from this list, send a message to 'vorbis-dev-request at xiph.org'
containing only the word 'unsubscribe' in the body.  No subject is needed.
Unsubscribe messages sent to the list will be ignored/filtered.



More information about the Vorbis-dev mailing list