Displaying 1 result from an estimated 1 matches for "oggcommentheader".
2015 Oct 17
1
Why does this code not generate a valid opus file?
...g.h"
//Some structs to help build the headers.
struct OggHeader {
    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 m...