RTP Audio System
2.0.0
|
Audio Client. More...
#include <audioclient.h>
Audio Client.
This class is an audio client.
AudioClient::AudioClient | ( | AudioWriterInterface * | audioOutput | ) |
Constructor for a new audio client.
audioOutput | AudioWriter to write the output to. |
AudioClient::~AudioClient | ( | ) | [virtual] |
Destructor.
bool AudioClient::change | ( | const char * | mediaName | ) |
Change media of an established connection.
mediaName | New media name (e.g. ../AudioFiles/Test2.list) |
card32 AudioClient::getBandwidthLimit | ( | ) | const [inline] |
Get bandwidth limit.
card8 AudioClient::getBits | ( | ) | const [virtual] |
getBits() Implementation of AudioQualityInterface.
Implements AudioQualityInterface.
cardinal AudioClient::getBitsPerSample | ( | ) | const [virtual] |
getBitsPerSample() Implementation of AudioQualityInterface.
Implements AudioQualityInterface.
card16 AudioClient::getByteOrder | ( | ) | const [virtual] |
getByteOrder() Implementation of AudioQualityInterface.
Implements AudioQualityInterface.
cardinal AudioClient::getBytesPerSecond | ( | ) | const [virtual] |
getBytesPerSecond() Implementation of AudioQualityInterface.
Implements AudioQualityInterface.
card64 AudioClient::getBytesReceived | ( | const cardinal | layer = 0 | ) | const [inline] |
Get number of bytes received.
layer | Layer number or (cardinal)-1 for sum of all layers. |
card8 AudioClient::getChannels | ( | ) | const [virtual] |
getChannels() Implementation of AudioQualityInterface.
Implements AudioQualityInterface.
const char* AudioClient::getEncoding | ( | ) | const [inline] |
Get encoding name.
const char * AudioClient::getEncodingName | ( | const cardinal | index | ) |
Get encoding name for a given index of the client's decoder repository.
index | Repository index. |
card8 AudioClient::getErrorCode | ( | ) | const [inline] |
Get error code.
card32 AudioClient::getFlowLabel | ( | const cardinal | layer = 0 | ) | const [inline] |
double AudioClient::getFractionLost | ( | const cardinal | layer = 0 | ) | const |
InternetFlow AudioClient::getInternetFlow | ( | const cardinal | layer = 0 | ) | const [inline] |
Get InternetFlow of last received packet in given layer.
layer | Layer number. |
card8 AudioClient::getIPVersion | ( | ) | const |
Get IP version.
double AudioClient::getJitter | ( | const cardinal | layer = 0 | ) | const |
cardinal AudioClient::getLayers | ( | ) | const [inline] |
Get number of layers in last transmission.
card64 AudioClient::getMaxPosition | ( | ) | const [inline] |
Get maximum media position.
MediaInfo AudioClient::getMediaInfo | ( | ) | const |
String AudioClient::getOurAddressString | ( | const InternetAddress::PrintFormat | format = InternetAddress::PF_Address | ) | const |
Get client address string.
format | Print format. |
card32 AudioClient::getOurSSRC | ( | ) | const [inline] |
Get client SSRC.
card64 AudioClient::getPacketsLost | ( | const cardinal | layer = 0 | ) | const |
card64 AudioClient::getPacketsReceived | ( | const cardinal | layer = 0 | ) | const [inline] |
Get current media position. This will automatically the RestartPosition value in the next AudioClientAppPacket. The server will restart from the current position, if the server is restarted.
Get number of raw bytes (incl. IPv6/UDP/RTP/RTPAudio headers) per second.
card16 AudioClient::getSamplingRate | ( | ) | const [virtual] |
getSamplingRate() Implementation of AudioQualityInterface.
Implements AudioQualityInterface.
String AudioClient::getServerAddressString | ( | const InternetAddress::PrintFormat | format = InternetAddress::PF_Address | ) | const |
Get server address string.
format | Print format. |
card32 AudioClient::getServerSSRC | ( | const cardinal | layer = 0 | ) | const |
card8 AudioClient::getTrafficClass | ( | const cardinal | layer = 0 | ) | const [inline] |
bool AudioClient::play | ( | const char * | url | ) |
Start playing given media from given server.
url | Media URL (e.g. "rtpa+sctp://gaffel:7500/Test1.list"). |
bool AudioClient::playing | ( | ) | const [inline] |
Check, if audio client is playing.
void AudioClient::sendCommand | ( | const bool | updateRestartPosition = true | ) | [private] |
void AudioClient::setBandwidthLimit | ( | const card32 | bandwidthLimit | ) | [inline] |
Set bandwidth limit.
bandwidthLimit | Bandwidth limit. |
card8 AudioClient::setBits | ( | const card8 | bits | ) | [virtual] |
Set number of audio bits.
bits | New number of audio bits. |
Implements AdjustableAudioQualityInterface.
card16 AudioClient::setByteOrder | ( | const card16 | byteOrder | ) | [virtual] |
Set audio byte order.
rate | New audio byte order. |
Implements AdjustableAudioQualityInterface.
card8 AudioClient::setChannels | ( | const card8 | channels | ) | [virtual] |
Set number of audio channels
channels | New number of audio channels. |
Implements AdjustableAudioQualityInterface.
void AudioClient::setEncoding | ( | const cardinal | index | ) |
Set encoding by index in client's decoder repository.
index | Index in decoder repository. |
void AudioClient::setPause | ( | const bool | on | ) |
Set pause.
on | true for pause on; false for pause off. |
void AudioClient::setPosition | ( | const card64 | position | ) | [inline] |
Set media position.
position | New media position in nanoseconds. |
card16 AudioClient::setSamplingRate | ( | const card16 | rate | ) | [virtual] |
Set audio sampling rate.
rate | New audio sampling rate. |
Implements AdjustableAudioQualityInterface.
void AudioClient::stop | ( | ) |
Stop playing.
AudioWriterInterface* AudioClient::AudioOutput [private] |
card64 AudioClient::ChangeTimeStamp [private] |
AudioDecoderRepository AudioClient::Decoders [private] |
std::multimap<const cardinal,AudioDecoderInterface*> AudioClient::DecoderSet [private] |
InternetFlow AudioClient::Flow [private] |
bool AudioClient::IsPlaying [private] |
card64 AudioClient::OldPosition [private] |
InternetAddress AudioClient::OurAddress [private] |
card32 AudioClient::OurSSRC [private] |
RTPReceiver* AudioClient::Receiver [private] |
Socket AudioClient::ReceiverSocket [private] |
const card64 AudioClient::RestartPositionUpdateDelay = 5000000 [static, private] |
RTCPSender* AudioClient::Sender [private] |
Socket AudioClient::SenderSocket [private] |
InternetAddress AudioClient::ServerAddress [private] |
AudioClientAppPacket AudioClient::Status [private] |