ex

Fork of mbed-os-example-mbed5-blinky by mbed-os-examples

Embed: (wiki syntax)

« Back to documentation index

SpeexHeader: Makes it easy to write/parse an Ogg/Speex header

SpeexHeader: Makes it easy to write/parse an Ogg/Speex header

This is the Speex header for the Ogg encapsulation. More...

Data Structures

struct  SpeexHeader
 Speex header info for file-based formats. More...

Typedefs

typedef struct SpeexHeader SpeexHeader
 Speex header info for file-based formats.

Functions

void speex_init_header (SpeexHeader *header, int rate, int nb_channels, const struct SpeexMode *m)
 Initializes a SpeexHeader using basic information.
char * speex_header_to_packet (SpeexHeader *header, int *size)
 Creates the header packet from the header itself (mostly involves endianness conversion)
SpeexHeaderspeex_packet_to_header (char *packet, int size)
 Creates a SpeexHeader from a packet.

Detailed Description

This is the Speex header for the Ogg encapsulation.

You don't need that if you just use RTP.


Typedef Documentation

typedef struct SpeexHeader SpeexHeader

Speex header info for file-based formats.


Function Documentation

char* speex_header_to_packet ( SpeexHeader header,
int *  size 
)

Creates the header packet from the header itself (mostly involves endianness conversion)

void speex_init_header ( SpeexHeader header,
int  rate,
int  nb_channels,
const struct SpeexMode m 
)

Initializes a SpeexHeader using basic information.

SpeexHeader* speex_packet_to_header ( char *  packet,
int  size 
)

Creates a SpeexHeader from a packet.