[vorbis-dev] ogg123 sampling rate problems

Michael Smith msmith at labyrinth.net.au
Thu Jan 25 22:49:22 PST 2001

At 08:06 PM 1/24/01 -0600, you wrote:
>On Wed, Jan 24, 2001 at 10:17:50PM +1100, Michael Smith wrote:
>> The 'right' solution here is to open the audio device(s) only once the
>> relevent parameters are known, and then ONLY reopen it if those change (so,
>> if you're playing multiple files with the same sampling rate, etc, you
>> don't close the device between files. 
>Here's a patch that does that.  The sampling rate and channels are set per
>device, which is probably the wrong place for them, but otherwise I'd have to
>use either static or global variable, and both are bad.  Anyway, this version
>still prints out the device info at the beginning even though it doesn't
>actually open them until it opens the first file.

Well, I ended up redoing this, but thanks for the patch anyway. It should work nicely now (and does in my test of playing a stereo followed by a mono file).


--- >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