#include <yatephone.h>
Static Public Member Functions | |
static const FormatInfo * | getFormat (const String &name) |
static const FormatInfo * | addFormat (const String &name, int fsize, int ftime, const String &type="audio", int srate=8000, int nchan=1) |
This is just a holder for the list of media formats supported by Yate
static const FormatInfo* getFormat | ( | const String & | name | ) | [static] |
Retrieve a format by name and type
name | Standard name of the format to find |
static const FormatInfo* addFormat | ( | const String & | name, | |
int | fsize, | |||
int | ftime, | |||
const String & | type = "audio" , |
|||
int | srate = 8000 , |
|||
int | nchan = 1 | |||
) | [static] |
Add a new format to the repository
name | Standard no-blanks lowercase format name | |
fsize | Data frame size in octets/frame, 0 for non-framed formats | |
ftime | Data frame duration in microseconds, 0 for variable | |
type | Format type: "audio", "video", "text" | |
srate | Rate in samples/second (audio) or 1e-6 frames/second (video), 0 for unknown | |
nchan | Number of channels, typically 1 |