shithub: opus-tools

ref: e8ad940085b3e9fe070f338765a54c15438de781
dir: /src/opus_header.h/

View raw version
#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