[Vorbis-dev] Wav to Ogg Vorbis conversion

Dmitriy Reznik dreznik at tantor.com
Thu Mar 10 08:27:18 PST 2011


Dear experts,

 

I am trying to use an example I found here:

 

http://svn.xiph.org/trunk/vorbis/examples/encoder_example.c

 

 

Could you please tell me what float** buffer is needed for (I don't see
it used anywhere). 

Also, could you please tell me what this code is doing:

 

      for(i=0;i<bytes/4;i++){

        buffer[0][i]=((readbuffer[i*4+1]<<8)|

                      (0x00ff&(int)readbuffer[i*4]))/32768.f;

        buffer[1][i]=((readbuffer[i*4+3]<<8)|

                      (0x00ff&(int)readbuffer[i*4+2]))/32768.f;

      }

Again, buffer is not used afterwards.

And where does the actual encoding happens?

Maybe you could recommend some tutorial to understand how this works?

Thank you very much,

 

Dmitriy

 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.xiph.org/pipermail/vorbis-dev/attachments/20110310/aec50933/attachment.htm 


More information about the Vorbis-dev mailing list