# speex_jitter.h File Reference

Adaptive jitter buffer for Speex. More...

`#include "speex.h"`
`#include "speex_bits.h"`

## Classes
struct | SpeexJitter
## Defines
#define | SPEEX_JITTER_MAX_PACKET_SIZE 1500
#define | SPEEX_JITTER_MAX_BUFFER_SIZE 20
#define | MAX_MARGIN 12
## Functions
void | speex_jitter_init (SpeexJitter *jitter, void *decoder, int sampling_rate)
void | speex_jitter_destroy (SpeexJitter *jitter)
void | speex_jitter_put (SpeexJitter *jitter, char *packet, int len, int timestamp)
void | speex_jitter_get (SpeexJitter *jitter, short *out, int *current_timestamp)
int | speex_jitter_get_pointer_timestamp (SpeexJitter *jitter)

## Detailed Description

Adaptive jitter buffer for Speex.

## Define Documentation

#define MAX_MARGIN 12

Number of bins in margin histogram

#define SPEEX_JITTER_MAX_BUFFER_SIZE 20

Maximum number of packets in jitter buffer

#define SPEEX_JITTER_MAX_PACKET_SIZE 1500

Maximum number of bytes per packet

## Function Documentation

void speex_jitter_destroy | ( | SpeexJitter * | jitter | ) |

Destroy jitter buffer

void speex_jitter_get | ( | SpeexJitter * | jitter,
|  | short * | out,
|  | int * | current_timestamp |
| ) |  |  |

Get one packet from the jitter buffer

int speex_jitter_get_pointer_timestamp | ( | SpeexJitter * | jitter | ) |

Get pointer timestamp of jitter buffer

void speex_jitter_init | ( | SpeexJitter * | jitter,
|  | void * | decoder,
|  | int | sampling_rate |
| ) |  |  |

Initialise jitter buffer

void speex_jitter_put | ( | SpeexJitter * | jitter,
|  | char * | packet,
|  | int | len,
|  | int | timestamp |
| ) |  |  |

Put one packet into the jitter buffer