paraslash Paraslash Audio Streaming
About   News   Download   Documentation   Development

Data Structures | Functions
spx.h File Reference

Structures and prototypes common to the speex audio format handler and the speex decoder. More...

Data Structures

struct  spx_header_info
 Information extracted from the first ogg packet. More...
 

Functions

int spx_process_header (unsigned char *packet, long bytes, struct spx_header_info *shi)
 Obtain information about a speex file from an ogg packet. More...
 

Detailed Description

Structures and prototypes common to the speex audio format handler and the speex decoder.

Function Documentation

◆ spx_process_header()

int spx_process_header ( unsigned char *  packet,
long  bytes,
struct spx_header_info shi 
)

Obtain information about a speex file from an ogg packet.

Parameters
packetStart of the ogg packet.
bytesLength of the ogg packet.
shiResult pointer.
Returns
Standard.

References spx_header_info::mode, and spx_header_info::state.