Displaying 1 result from an estimated 1 matches for "beginning_of_stream".
2015 Oct 17
1
Why does this code not generate a valid opus file?
...2, //Channels
0, //pre-skip
44100, //Original samplerate
0, //output gain
0}; //Mapping family
ogg_packet header;
header.packet = (unsigned char*)&headerContent;
header.bytes = sizeof(struct OggHeader);
header.b_o_s = 1; //Header must set beginning_of_stream
header.e_o_s = 0;
header.granulepos = -1; //This packet does not contain audio data, so granule-position = -1
header.packetno = 0;
ogg_stream_packetin(&os,&header);
//**************
//Create the comments header
struct OggCommentHeader commentHeaderConte...