search for: sf_close

Displaying 2 results from an estimated 2 matches for "sf_close".

Did you mean: s_close
2011 Mar 10
4
Wav to Ogg Vorbis conversion
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)|
2013 Dec 04
1
endian problems with AIFF and WAV
...uot;); exit(1); } buffer = malloc(sizeof(int) * sf_info.frames * sf_info.channels); frames_read = sf_read_int(sndfile, buffer, sf_info.frames * sizeof(int)); ao_play(device, (char *)buffer, sf_info.frames * sizeof(int)); ao_close(device); ao_shutdown(); sf_close(sndfile); return 0; }