[vorbis-dev] ogg123 sampling rate problems

volsung at asu.edu volsung at asu.edu
Wed Jan 24 18:33:32 PST 2001



On Wed, 24 Jan 2001, Aaron Plattner 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.
> 
> > 
> > Under some circumstances you might want to do so, though (the obvious one
> > is file output, but ogg123 gets this wrong for multiple files anyway - I
> > haven't checked, but I think it'll just overwrite the file).
> Yes, that's quite definitely broken with this version.  On the other hand,
> writing two different-samplingrate stream to the same wav won't work too well, I
> don't think...
> 
> By the way, how do you get ogg123 to open more than one device?  It looks like
> it will only open the last one on the command line.

Last time I checked, you just kept specifying devices:

ogg123 test.ogg -d esd -d wav -o file:test.wav -d wav -o file:test2.wav

(Listen to the file while you write it to two different wav files.)


---
Stan Seibert

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