1 /* Copyright (C) 2013 Andre Noll <maan@tuebingen.mpg.de>, see file COPYING. */
5 * Common declarations for the opus decoder and audio format handler.
8 /** Various bits stored in the header of an opus stream. */
10 /** lower 4 bits of the version byte, must be 0. */
14 /** Number of bytes to skip from the beginning. */
16 /** Sample rate of the input stream, used by the audio format handler. */
17 uint32_t input_sample_rate;
18 /** In dB, should be zero whenever possible. */
20 /** Number of logical streams (usually 1). */
22 /** Number of streams to decode as 2 channel streams. */
24 /** Mapping from coded channels to output channels. */
25 unsigned char stream_map[255];
28 int opus_parse_header(const char *packet, int len, struct opus_header *h);