RTP Audio System
2.0.0
|
Advanced Audio Packet. More...
#include <advancedaudiopacket.h>
Advanced Audio Packet.
This struct defines the packet format for the advanced audio encoder.
Constructor.
cardinal AdvancedAudioPacket::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. |
cardinal AdvancedAudioPacket::calculateLayers | ( | const AudioQualityInterface & | quality | ) | [static] |
Calculate number of layers for given quality.
quality | Quality. |
AudioQuality AdvancedAudioPacket::calculateQualityForLimits | ( | const AudioQualityInterface & | userSetting, |
const AudioQualityInterface & | inputQuality, | ||
const card64 | totalByteRateLimit, | ||
const card64 | byteRateLimitL1, | ||
const card64 | byteRateLimitL2, | ||
const card64 | byteRateLimitL3, | ||
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. |
byteRateLimitL1 | Layer #0 byte rate limit. |
byteRateLimitL2 | Layer #1 byte rate limit. |
byteRateLimitL3 | Layer #2 byte rate limit. |
networkQualityDecrement | Number of steps for decrement of user's quality. |
headerSize | Header size (eg. IP + UDP + RTP). AdvancedAudioPacket size is added automatically. |
maxPacketSize | Maximum packet size. |
void AdvancedAudioPacket::reset | ( | ) |
Reset report.
void AdvancedAudioPacket::translate | ( | ) |
Translate byte order.
const card32 AdvancedAudioPacket::AdvancedAudioFormatID = 0x74660000 | AdvancedAudioTypeID [static] |
Advanced Audio Encoding package format ID.
const cardinal AdvancedAudioPacket::AdvancedAudioFrameSize [static] |
44100 * 2 * 2 / AdvancedAudioFramesPerSecond
Advanced Audio frame size.
const cardinal AdvancedAudioPacket::AdvancedAudioFramesPerSecond = 35 [static] |
Advanced Audio frames per second.
const cardinal AdvancedAudioPacket::AdvancedAudioMaxQualityLayers = 3 [static] |
Advanced Audio maximum quality layers.
const cardinal AdvancedAudioPacket::AdvancedAudioMaxTransferDelay = 100 * 16 [static] |
Advanced Audio maximum transfer delay.
const cardinal AdvancedAudioPacket::AdvancedAudioMediaInfoPacketsPerSecond = 2 [static] |
Advanced Audio MediaInfo packets per second.
const cardinal AdvancedAudioPacket::AdvancedAudioQualityLevels = AudioQuality::QualityLevels [static] |
Advanced Audio quality levels.
const card16 AdvancedAudioPacket::AdvancedAudioTypeID = 0x2961 [static] |
Type ID for Advanced Audio Encoding.
const char AdvancedAudioPacket::AdvancedAudioTypeName = "Advanced Audio Encoding" [static] |
Name for Advanced Audio Encoding.
Number of audio bits.
Number of audio channels.
char AdvancedAudioPacket::Data[0] |
Packet data.
Error code.
Advanced Audio Encoding Flags.
Packet format ID.
Fragment number.
Maximum position in nanoseconds.
Current position in nanoseconds.
Audio sampling rate.