[vorbis-dev] (Yet another) ogg123 buffer patch

Aaron Plattner AaronP at Crosswinds.net
Sat Mar 3 13:10:03 PST 2001


Here's yet another ogg123 patch that:

1) Adds a command-line parameter "--prebuffer n" or "-p n" that decodes "n"
chunks into the buffer before even forking off the writer thread.
2) Moves the buffer_shutdown call in ogg123.c to its proper place.
3) Doesn't use signals ;)

This way, the default behavior is to start playing immediately, while allowing
the user to buffer as much as he/she wants.  It may be worth it to make the
writer thread stop and rebuffer when it empties, but that may require a rewrite.

I don't know if this is what you guys are looking for, but it seems to work for
me.

Aaron Plattner


<HR NOSHADE>
<UL>
<LI>text/plain attachment: buffer.diff
</UL>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: buffer.diff
Type: application/octet-stream
Size: 7008 bytes
Desc: not available
Url : http://lists.xiph.org/pipermail/vorbis-dev/attachments/20010303/b6d6fe1e/buffer.obj
-------------- 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/20010303/b6d6fe1e/part.obj


More information about the Vorbis-dev mailing list