[Vorbis-dev] .wav to .ogg

Frédéric Bastien nouiz at nouiz.org
Fri Feb 2 08:05:33 PST 2007


You can add the oggenc application in your application of make a 
dependance on it. Then you can make an extern call to it with the 
function 'system(string)' that will execute the command line 'str'.

As exemple on a linux platform, if oggenc is well installed(in the 
path), you could call the function:

system('oggenc sound.wav')

hope this help

Frédéric Bastien

Michael Smith wrote:
> On 2/2/07, Sebastian Olter <qduaty at gmail.com> wrote:
>> 2007/2/2, Aday Tejera <adayts6 at hotmail.com>:
>> > application that needs to convert a .wav audio file to a .ogg one.
>> What about encoder_example.c?
> The original poster was specifically asking about converting from a
> wav file to vorbis. The encoder example only converts from raw PCM at
> 44.1kHz, 16 bit little-endian, stereo (i.e. a raw, headerless,
> format).
> So yes, oggenc is an example, though it's designed to be useful, not
> just a minimal example, so it's not the simplest thing to show
> someone.
> Mike
> _______________________________________________
> Vorbis-dev mailing list
> Vorbis-dev at xiph.org
> http://lists.xiph.org/mailman/listinfo/vorbis-dev

More information about the Vorbis-dev mailing list