Class for streaming data from a source into an RTP stream.
More...
#include <AudioStreamer.h>
Class for streaming data from a source into an RTP stream.
◆ AudioStreamer() [1/2]
AudioStreamer::AudioStreamer |
( |
| ) |
|
◆ AudioStreamer() [2/2]
Creates a new AudioStreamer object
- Parameters
-
source | Object implementing the IAudioSource interface, used as a source for the RTP stream |
◆ ~AudioStreamer()
AudioStreamer::~AudioStreamer |
( |
| ) |
|
|
virtual |
◆ InitAudioSource()
bool AudioStreamer::InitAudioSource |
( |
| ) |
|
Sets up the information from the AudioSource.
- Returns
- true
-
false
◆ InitUdpTransport()
bool AudioStreamer::InitUdpTransport |
( |
IPADDRESS |
aClientIP, |
|
|
IPPORT |
aClientPort |
|
) |
| |
Opens sockets for RTP stream
- Parameters
-
aClientIP | IP address of the RTP client |
aClientPort | port of the RTP client |
- Returns
- true on success
◆ ReleaseUdpTransport()
void AudioStreamer::ReleaseUdpTransport |
( |
void |
| ) |
|
Close sockets used for RTP stream
◆ SendRtpPacketDirect()
int AudioStreamer::SendRtpPacketDirect |
( |
| ) |
|
Sends an RTP packet using the audio source given. Audio source copies data right into the RTP packet
- Returns
- number of samples sent in the packet
◆ setAudioSource()
Defines the AudioSource object (if it was not assigned in the constructor)
◆ Start()
void AudioStreamer::Start |
( |
| ) |
|
◆ Stop()
void AudioStreamer::Stop |
( |
| ) |
|
The documentation for this class was generated from the following files: