Wav to Ogg Vorbis conversion

"Dmitriy Reznik" <[email protected]> Thu, 10 Mar 2011 11:27:18 -0500
Newsgroups gmane.comp.multimedia.ogg.vorbis.devel
Message-ID <[email protected]>
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

_______________________________________________
Vorbis-dev mailing list
[email protected]
http://lists.xiph.org/mailman/listinfo/vorbis-dev