#include <yatephone.h>
Public Member Functions | |
int | guessSamples (int len) const |
int | dataRate () const |
FormatInfo () | |
FormatInfo (const char *_name, int fsize=0, int ftime=10000, const char *_type="audio", int srate=8000, int nchan=1, bool convert=false) | |
Public Attributes | |
const char * | name |
const char * | type |
int | frameSize |
int | frameTime |
int | sampleRate |
int | numChannels |
bool | converter |
|
Default constructor - used to initialize arrays |
|
Normal constructor |
|
Get the data rate in bytes/s
|
|
Guess the number of samples in an encoded data block
|
|
If this is a valid candidate for conversion |
|
Frame size in octets/frame, 0 for non-framed formats |
|
Frame time in microseconds, 0 for variable |
|
Standard no-blanks lowercase format name |
|
Number of channels, typically 1 |
|
Rate in samples/second (audio) or 1e-6 frames/second (video), 0 for unknown |
|
Format type: "audio", "video", "text" |