#include <PtAudioCodec.h>
|
enum | PtRtpAudioCodecType { UNKNOWN_CODEC,
MU_LAW_8B_8K,
A_LAW_8B_8K,
LINEAR_16B_8K
} |
|
enum | PtRtpAudioEncodingMethod { UNKNOWN_ENCODING,
MU_LAW,
A_LAW,
LINEAR
} |
| enumcode: UNKNOWN_CODEC - undefined encoding parameters. enumcode: MU_LAW_8B_8K - mu-law encoding, 8 bit samples, 8 kilohertz sample rate, one channel enumcode: A_LAW_8B_8K - a-law encoding, 8 bit samples, 8 kilohertz sample rate, one channel enumcode: LINEAR_16B_8K - PCM/linear encoding, 16 bit samples, 8 kilohertz sample rate, one channel More...
|
|
Enumerator |
---|
UNKNOWN_CODEC |
|
MU_LAW_8B_8K |
|
A_LAW_8B_8K |
|
LINEAR_16B_8K |
|
enumcode: UNKNOWN_CODEC - undefined encoding parameters. enumcode: MU_LAW_8B_8K - mu-law encoding, 8 bit samples, 8 kilohertz sample rate, one channel enumcode: A_LAW_8B_8K - a-law encoding, 8 bit samples, 8 kilohertz sample rate, one channel enumcode: LINEAR_16B_8K - PCM/linear encoding, 16 bit samples, 8 kilohertz sample rate, one channel
Enumerator |
---|
UNKNOWN_ENCODING |
|
MU_LAW |
|
A_LAW |
|
LINEAR |
|
enumcode: UNKNOWN_ENCODING - undefined encoding method. enumcode: MU_LAW - mu-law encoding enumcode: A_LAW - a-law encoding enumcode: LINEAR - PCM/linear encoding
int getNumChannels |
( |
| ) |
const |
returns: The number of samples per second.
returns: The codec type enumeration.
int getSampleRate |
( |
| ) |
const |
returns: The number of bits per sample
int getSampleSize |
( |
| ) |
const |
returns: the enumeration for the encoding method for this codec.
returns: The number of channels.