paraslash Paraslash Audio Streaming
About   News   Download   Documentation   Development

Functions
spx_common.c File Reference

Functions used by the speex decoder and the speex audio format handler. More...

#include <regex.h>
#include <speex/speex_header.h>
#include <speex/speex_stereo.h>
#include <speex/speex_callbacks.h>
#include "para.h"
#include "error.h"
#include "spx.h"

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

Functions used by the speex decoder and the speex audio format handler.

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.