Displaying 1 result from an estimated 1 matches for "headercontent".
2015 Oct 17
1
Why does this code not generate a valid opus file?
...fout == 0 ) {
printf( "Error opening output file.\n" );
return -1;
}
//**************
//Initialize the stream
srand(0);
ogg_stream_init(&os,rand());
//**************
//Create the header
//*****************
struct OggHeader headerContent = {
{'O', 'p', 'u', 's', 'H', 'e', 'a', 'd'},
1, //Version
2, //Channels
0, //pre-skip
44100, //Original samplerate
0, //output gain
0}; //Mapping family
ogg_packet heade...