ref: c83e66fdcd3e78602b7b56dd037ef6d7ba7ee5a3
dir: /src/opus_header.h/
#ifndef OPUS_HEADER_H #define OPUS_HEADER_H #include "opus_types.h" typedef struct { opus_uint32 sample_rate; int multi_stream; int channels; int pregap; unsigned char mapping[256][3]; } OpusHeader; int opus_header_parse(const unsigned char *header, int len, OpusHeader *h); int opus_header_to_packet(const OpusHeader *h, unsigned char *packet, int len); #endif