Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: EALib EthernetInterface_vz mbed-rtos mbed
Fork of header_main_colinas_V0-20-09-14 by
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
- 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 |
const uint16_t RTPBUF_PKGSIZE = 240 |
Generated on Tue Jul 12 2022 16:25:14 by
