[vorbis-dev] Decompression error with two streams.

Monty xiphmont at xiph.org
Thu Feb 22 20:10:52 PST 2001



> Thanks for taking the time to look at this.
> 
> Below is the code that is interfacing with Vorbis.  The rest of the code is
> shared across all types of sounds and works perfectly when decompressing
> .raw and .wav files.  I am using ov_open_callbacks to make the vorbis
> decompresser use the same file interface that is used when .raw's and .wav's
> are present rather than .ogg's.  The code has never (in 3 years that I've
> been using it) made this sound while playing multiple streamed sound files.

It could simply be a bug the other usage never tripped (eg, vorbis is
putting out variable sized buffers which .raw and .wav would probably
would not).

That's not to say it isn't a Vorbis bug, just that 'it never broke
before' isn't really a strong argument for anything.

> 	return (pOggSoundReader->m_pFile->Read(ptr, size * nmemb) / size);

I'm sure it's the case, but nothing else is touching that FILE * pointer
under any conditions, correct?

Anyway, the code in the COggSoundReader class looked good.  

I assume that the content you're mixing plays back fine when decoded
one stream at a time and that the failure is not repeatable (eg, same
streams, but not same failure point each time)?  Have you set up any
means to capture/inspect the results directly from decode?

I've not seen any Vorbis failure along th elines you describe (yet),
and I doubt we'll find the problem simply by looking at code without
significantly narrowing the search scope first.

Monty

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