[vorbis-dev] Re: ogg123 1.0rc3 thread issue [FIXED] [#112]

volsung at asu.edu volsung at asu.edu
Mon Jan 21 13:17:05 PST 2002



On Mon, 21 Jan 2002, Kenneth Arnold wrote:

> On Mon, Jan 21, 2002 at 06:35:04PM +0000, Christian Weisgerber wrote:
> > ogg123 build with GNU pth runs, but playing through libao's sun
> > module is choppy and halting (at 50% idle).  Unusable.
> 
> GNU pth is pretty much defeating the point of having a threaded buffer
> to begin with. One thread is doing the reading and processing, and one
> is spinning out pretty much nothing but writes to the sound
> output. GNU pth is going to make them trade back and forth, so ogg123
> will alternate from decoding a chunk to playing it to decoding the
> next and so on. If the decode part can't be done before the output

Agreed.  You really need kernel-level thread scheduling so that the decode
thread can schedule CPU time while the playback thread is blocked waiting for
the audio write operation to finish.


---
Stan Seibert

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