Class FileAudioSource
Class for sending audio samples that have been read from a wave file.
Implements
Inherited Members
Namespace: SipLib.Media
Assembly: SipLib.dll
Syntax
public class FileAudioSource : IAudioSampleSource
Constructors
| Edit this page View SourceFileAudioSource(AudioSampleData, HighResolutionTimer?)
Constructor.
Declaration
public FileAudioSource(AudioSampleData audioSampleData, HighResolutionTimer? highResolutionTimer)
Parameters
Type | Name | Description |
---|---|---|
AudioSampleData | audioSampleData | Contains the audio samples to send as read from a wave file. |
HighResolutionTimer | highResolutionTimer | High resolution timer to use. If null, then a low resolution timer (System.Threading.Timer) will be used. |
Methods
| Edit this page View SourceStart()
Starts the timer for sending audio samples.
Declaration
public void Start()
Stop()
Stops the timer. No samples will be sent after this method returns.
Declaration
public void Stop()
Events
| Edit this page View SourceAudioSamplesReady
This event is fired every 20 milliseonds to provide an audio source with a new RTP block's worth of audio samples to send.
Declaration
public event AudioSamplesReadyDelegate? AudioSamplesReady
Event Type
Type | Description |
---|---|
AudioSamplesReadyDelegate |