VZTECH / Mbed 2 deprecated main_src

Dependencies:   EALib EthernetInterface_vz mbed-rtos mbed

Fork of header_main_colinas_V0-20-09-14 by VZTECH

Embed: (wiki syntax)

« Back to documentation index

rtpbuf.h File Reference

rtpbuf.h File Reference

Implementa funcionalidades de conversão entre u-law e a-law More...

Go to the source code of this file.

Functions

void rtpbuf_clear (rtpbuf_t *self)
 clear the buffer, useful at the start of a new phone call
void rtpbuf_put (rtpbuf_t *self, int size, uint8_t *data)
 use this function to put audio into the fifo
uint8_t * rtpbuf_get (rtpbuf_t *self)
 use this function to check if there is audio available returns NULL if there is no audio available or returns a pointer to the audio package
void rtpbuf_next (rtpbuf_t *self)
 use this function to tell rtpbuf that you already consumed the data supplied by rtpbuf_get()

Variables

const uint16_t RTPBUF_PKGSIZE = 240
 30ms @ 8Ksamples/sec
const uint16_t RTPBUF_BUFSIZE = 320
 40ms @ 8Ksamples/sec

Detailed Description

Implementa funcionalidades de conversão entre u-law e a-law

Author:
Jhonatan Casale / PedroZN
Version:
1
Date:
2014-11-05
Note:
IMPORTANT: sizes must be multiple of 4

Definition in file rtpbuf.h.


Function Documentation

void rtpbuf_clear ( rtpbuf_t *  self )

clear the buffer, useful at the start of a new phone call

Definition at line 3 of file rtpbuf.cpp.

uint8_t* rtpbuf_get ( rtpbuf_t *  self )

use this function to check if there is audio available returns NULL if there is no audio available or returns a pointer to the audio package

Definition at line 14 of file rtpbuf.cpp.

void rtpbuf_next ( rtpbuf_t *  self )

use this function to tell rtpbuf that you already consumed the data supplied by rtpbuf_get()

Definition at line 20 of file rtpbuf.cpp.

void rtpbuf_put ( rtpbuf_t *  self,
int  size,
uint8_t *  data 
)

use this function to put audio into the fifo

Definition at line 7 of file rtpbuf.cpp.


Variable Documentation

const uint16_t RTPBUF_BUFSIZE = 320

40ms @ 8Ksamples/sec

Definition at line 18 of file rtpbuf.h.

const uint16_t RTPBUF_PKGSIZE = 240

30ms @ 8Ksamples/sec

Definition at line 16 of file rtpbuf.h.