paraslash Paraslash Audio Streaming
About   News   Download   Documentation   Development

Data Structures | Functions
opus_common.h File Reference

Common declarations for the opus decoder and audio format handler. More...

Data Structures

struct  opus_header
 Various bits stored in the header of an opus stream. More...
 

Functions

int opus_parse_header (const char *packet, int len, struct opus_header *h)
 Get metadata of an opus stream. More...
 

Detailed Description

Common declarations for the opus decoder and audio format handler.

Function Documentation

◆ opus_parse_header()

int opus_parse_header ( const char *  packet,
int  len,
struct opus_header h 
)

Get metadata of an opus stream.

This is called from both the audio format handler (which passes ogg packet 0) and from the decoder.

Parameters
packetStart of the packet.
lenNumber of bytes.
hResult.
Returns
Standard.