ref: 2b249750bc49554358916d83392a4d2e006f5b3a
dir: /src/opus_header.h/
#ifndef OPUS_HEADER_H #define OPUS_HEADER_H #include <ogg/ogg.h> typedef struct { int version; int channels; /* Number of channels: 1..255 */ int preskip; ogg_uint32_t input_sample_rate; int gain; /* in dB S7.8 should be zero whenever possible */ int channel_mapping; /* The rest is only used if channel_mapping != 0 */ int nb_streams; int nb_coupled; unsigned char stream_map[255]; } 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