paraslash Paraslash Audio Streaming
About   News   Download   Documentation   Development

Data Structures | Functions
opus_common.h File Reference

Data Structures

struct  opus_header
 

Functions

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

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.