Displaying 1 result from an estimated 1 matches for "magicsignature".
2015 Oct 17
1
Why does this code not generate a valid opus file?
...ecode Opus header packet 0 - invalid Opus stream (1)
Opus stream 1:
WARNING: stream 1 is empty
Logical stream 1 ended
Here is my code:
#include <stdio.h>
#include <stdlib.h>
#include "ogg/ogg.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 s...