Displaying 1 result from an estimated 1 matches for "vendorstringlength".
2015 Oct 17
1
Why does this code not generate a valid opus file?
...unsigned char magicSignature[8];
unsigned char version;
unsigned char channelCount;
unsigned short preSkip;
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* fou...