|
|
This class defines the packet format for the simple audio encoder.
See also: SimpleAudioEncoder, SimpleAudioDecoder
|
Constructor.
void |
Translate byte order.
void |
Reset report.
static const card16 |
Type ID for Simple Audio Encoding.
static const char [] |
Name for Simple Audio Encoding.
static const card32 |
Simple Audio Encoding package format ID.
static const cardinal |
Simple Audio MediaInfo packets per second.
static const cardinal |
Simple Audio frames per second.
static const cardinal |
Simple Audio frame size.
static const cardinal |
Simple Audio maximum transfer delay.
static const cardinal |
Simple Audio number of quality levels.
static const double |
Simple Audio loss threshold for quality decrement.
static const double |
Simple Audio loss threshold for quality increment.
void |
[static]
Get TransportInfo constants for given header size and maximum packet size.
Parameters:
transportInfo | Memory to store TransportInfo. |
headerSize | Size of packet header (e.g. RTP header). |
maxPacketSize | Maximum size of a packet. |
lastTransmissionQuality | Quality of last transmission. |
calculateLevels | true to calculate all level constants; false otherwise. |
void |
[static]
Get TransportInfo for given header size and maximum packet size.
Parameters:
transportInfo | Memory to store TransportInfo. |
headerSize | Size of packet header (e.g. RTP header). |
maxPacketSize | Maximum size of a packet. |
qualitySetting | Current quality setting. |
lastTransmissionQuality | Quality of last transmission. |
calculateLevels | true to calculate all level constants; false otherwise. |
void |
[static]
Calculate TransportInfoLevel for given quality and given header size and maximum packet size.
Parameters:
level | Memory to store calculated TransportInfoLevel. |
headerSize | Size of packet header (e.g. RTP header). |
maxPacketSize | Maximum size of a packet. |
quality | Quality to calculate level for. |
AudioQuality |
[static]
Quality calculation for given user quality limited by input quality, byte rate and network quality decrement with given header size (eg. IP + UDP + RTP) and maximum packet size.
Parameters:
userSetting | User's quality setting. |
inputQuality | Input source's quality. |
byteRateLimit | Byte rate limit. |
networkQualityDecrement | Number of steps for decrement of user's quality. |
headerSize | Header size (eg. IP + UDP + RTP). SimpleAudioPacket size is added automatically. |
maxPacketSize | Maximum packet size. |
Returns: The calculated quality.
cardinal |
[static]
Calculate output frame size from given input bytes per second and input frame size.
Parameters:
inputBytesPerSecond | Input source's bytes per second. |
inputFrameSize | Input source's frame size. |
Returns: The calculated frame size.
card32 |
Packet format ID.
card16 |
Audio sampling rate.
card8 |
Number of audio channels.
card8 |
Number of audio bits.
card64 |
Current position in nanoseconds.
card64 |
Maximum position in nanoseconds.
card8 |
Error code.
card8 |
Flags.
enum |
Emumeration of Flags.
char [0] |
Packet data.