[vorbis-dev] Small vorbis files with vorbisfile

Michael Smith msmith at labyrinth.net.au
Fri Nov 23 01:25:48 PST 2001



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.

This bug was fixed in cvs a week or two ago - could you give that a try?

Michael

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