[vorbis-dev] BeOS on PPC compile, thread question.

Jeff Squyres jsquyres at lsc.nd.edu
Wed Nov 15 09:24:40 PST 2000



On Wed, 15 Nov 2000, David Mitchell wrote:

> On a related note, is the current libvorbis considered thread-safe?
> Since I'm going to be running this on a dual-processor box I would
> like to be able to initialize two separate streams in different
> threads so that I can encode two songs at once. The old 8Hz-MP3 code
> that I'm ripping out of my program wasn't, and it was a huge pain to
> get it to a point where it was. I would also like the decoder to be
> threadsafe, so that I can do two decodes at once for cross-fades. Is
> this a planned feature?

Let me throw in my $0.02 as well -- I have designed a threaded Ogg encoder
(see http://www.mpi.nd.edu/~jsquyres/vorbis/) that would use multiple
threads to encode a single song (slightly different than the above
description).

But I haven't implemented it yet because last I checked, the library was
*not* thread safe, and Bad Things happened when I wrote up a trivial
multi-threaded encoder.  Last I heard, making it thread safe was "on the
list".  Has any progress been made in this area?

{+} Jeff Squyres
{+} squyres at cse.nd.edu
{+} Perpetual Obsessive Notre Dame Student Craving Utter Madness
{+} "I came to ND for 4 years and ended up staying for a decade"

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