shithub: opus-tools

ref: dc278cc6ae1e37aeac4e26b81c496c47a3045dd2
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