[vorbis] Using vorbisfile with an in-memory file instead of FILE*

Michael Smith msmith at labyrinth.net.au
Thu Dec 28 16:18:17 PST 2000



>Freeing memory isn't necessary at that place.
>Should errno also be set in the callbacks if necessary?

Only if you want to check errno elsewhere - vorbisfile doesn't care.

>> If it's a problem, just using 32 bit offsets will work fine (casting them
>> to 64 bits as appropriate, of course) - that's what the standard stdio
>> calls do.
>
>But then why doesn't the tell function use a 64 bit ofset as result?

Good question. Probably something that should be changed.

>
>Same as above.
>It seemed I had version 0.4 instead of 0.5, now it works, thanks.

It has been changed to reflect these capabilities - something may have been
left out for the beta3 release, though. 
                "INPUT FILES:\n"
                " OggEnc input files must currently be 16 bit PCM WAV files.\n"
                " Files may be mono or stereo and sampling rates from 8kHz-56kHz.\n"

>
>> The default is the 160 kbps mode.  Lower sampling rates work properly,\n"
>  " but don't scale the bitrate; -b 112 on a stereo 22kHz file will produce
>a\n"
>  " ~70kbps file, not 112kbps.)\n");
>}
>
>They seem to scale, but not in a lineair fashon. How exactly do they scale?

This means that selecting a given bitrate will aim for that bitrate
assuming 44.1kHz - and so, at different sampling rates, it will never give
a good approximation to that bitrate. The actual output bitrate will still
vary, though (as you go through the 6 modes that actually exist internally).

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