search for: usercommentlistlength

Displaying 1 result from an estimated 1 matches for "usercommentlistlength".

2015 Oct 17
1
Why does this code not generate a valid opus file?
...unsigned int sampleRate; unsigned short outputGain; unsigned char mappingFamily; }; struct OggCommentHeader { unsigned char magicSignature[8]; unsigned int vendorStringLength; //Must be set to 0 //In-between here we would place out vendor string, if we had one. unsigned int userCommentListLength; //Must be set to 0 //And after here we would place our comments, if we had any. }; int main(){ ogg_stream_state os; ogg_page og; FILE* fout = fopen("/tmp/trivial.opus", "wb"); if ( fout == 0 ) { printf( "Error opening output file.\...