paraslash Paraslash Audio Streaming
About   News   Download   Documentation   Development

Functions
opus_common.c File Reference

Common functions of the opus decoder and audio format handler. More...

#include "para.h"
#include "error.h"
#include "opus_common.h"
#include "portable_io.h"

Functions

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

Detailed Description

Common functions of 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.