RTP Audio System
2.0.0
|
Simple Audio Packet. More...
#include <simpleaudiopacket.h>
Simple Audio Packet.
This struct defines the packet format for the simple audio encoder.
Constructor.
cardinal SimpleAudioPacket::calculateFrameSize | ( | const cardinal | inputBytesPerSecond, |
const cardinal | inputFrameSize | ||
) | [static] |
Calculate output frame size from given input bytes per second and input frame size.
inputBytesPerSecond | Input source's bytes per second. |
inputFrameSize | Input source's frame size. |
AudioQuality SimpleAudioPacket::calculateQualityForLimits | ( | const AudioQualityInterface & | userSetting, |
const AudioQualityInterface & | inputQuality, | ||
const card64 | totalByteRateLimit, | ||
const cardinal | networkQualityDecrement, | ||
const cardinal | headerSize, | ||
const cardinal | maxPacketSize | ||
) | [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.
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. |
void SimpleAudioPacket::reset | ( | ) |
Reset report.
void SimpleAudioPacket::translate | ( | ) |
Translate byte order.
Number of audio bits.
Number of audio channels.
char SimpleAudioPacket::Data[] |
Packet data.
Error code.
Flags.
Packet format ID.
Maximum position in nanoseconds.
Current position in nanoseconds.
Audio sampling rate.
const card32 SimpleAudioPacket::SimpleAudioFormatID = 0x74660000 | SimpleAudioTypeID [static] |
Simple Audio Encoding package format ID.
const cardinal SimpleAudioPacket::SimpleAudioFrameSize = 2352 * 5 [static] |
Simple Audio frame size.
const cardinal SimpleAudioPacket::SimpleAudioFramesPerSecond = 15 [static] |
Simple Audio frames per second.
const cardinal SimpleAudioPacket::SimpleAudioMaxTransferDelay = 1500 * 16 [static] |
Simple Audio maximum transfer delay.
const cardinal SimpleAudioPacket::SimpleAudioMediaInfoPacketsPerSecond = 1 [static] |
Simple Audio MediaInfo packets per second.
Simple Audio number of quality levels.
const card16 SimpleAudioPacket::SimpleAudioTypeID = 0x2960 [static] |
Type ID for Simple Audio Encoding.
const char SimpleAudioPacket::SimpleAudioTypeName = "Simple Audio Encoding" [static] |
Name for Simple Audio Encoding.