[vorbis-dev] Small vorbis files with vorbisfile

Monty xiphmont at xiph.org
Fri Nov 23 18:04:14 PST 2001



On Fri, Nov 23, 2001 at 08:25:48PM +1100, Michael Smith wrote:
> At 07:42 AM 11/23/01 +0100, you wrote:
> >I think I have bumped into the small file error, or I'm doing something
> >stupid. The files are short audio effects for a game (embedded in our own
> >data format). 
> >
> >Sample info:
> >Vorbis packets: 1 (4 kb)
> >Samples: 28672
> >Samplerate: 22 kHz
> >Channels: 2
> >
> >This is what I'm doing when I want to get a number of bytes from the stream:
> >
> >The problem is that ov_pcm_tell always returns 0. And so does ov_read (its
> >only one packet so EOF)
> 
> It's impossible to have a vorbis file containing greater than 0 zero samples
> with only 1 packet. You need a minimum of 5 packets. Whatever tool you used
> to produce the above is wrong.

Given that the 'packet' is 4kB, I think he meant 'page'.

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