[vorbis-dev] Ogg123 buffering

Kenneth Arnold ken at arnoldnet.net
Wed Feb 28 19:50:07 PST 2001


On Wed, Feb 28, 2001 at 08:43:37PM -0600, Aaron Plattner wrote:
> Here's a short patch that uses signals to stop and resume the writer thread.  I
> don't know if using signals is the best way of doing this, but it certainly
> works, and it's short.  There's a race between the writer calling writer_main

I remember trying this, and something didn't work out right... but I
can't seem to remember what it was. Perhaps my own implementation
stupidity.

A few simple additions to this scheme could be workable for future
use; however I'm planning on ripping at least ideas if not code (if
licenses are okay of course) from mbuffer to get a reliable Unix
buffer. And I need to write the not-buffer output. For OSes that our
implementation doesn't work on.

Another change I just thought of was to store bitstream parameters in
each chunk, so we don't have to tear down the buffer and start a new
one every time bitstream paramters change.

Need to add Percentage Full and Prebuffer % support.

> and the main thread closing the buffer, but that seems so unlikely as to not
> create a problem.  The only problems I can think of are with very short ogg
> files or a buffer containing only one chunk, which doesn't work anyway.
> 
> Oh yeah... good job to everyone regarding the release.

What release? oh...


-- 
Kenneth Arnold <ken at arnoldnet.net> / kcarnold / Linux user #180115
http://arnoldnet.net/~kcarnold/



<HR NOSHADE>
<UL>
<LI>application/pgp-signature attachment: stored
</UL>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: part
Type: application/octet-stream
Size: 233 bytes
Desc: not available
Url : http://lists.xiph.org/pipermail/vorbis-dev/attachments/20010228/9cb2415e/part-0001.obj


More information about the Vorbis-dev mailing list