An audio bus used for all publisher and subscribers. This class is used to both read and write audio samples in order for them to be rendered or sent to remote peers. More...
Public Member Functions | |||||
int | ReadRenderData (IntPtr buffer, int numberOfSamples) | ||||
Reads audio data from subscriber audio streams to be rendered.
| |||||
int | WriteCaptureData (IntPtr buffer, int numberOfSamples) | ||||
Writes audio data (to publishers) to be captured and sent in the audio stream.
|
An audio bus used for all publisher and subscribers. This class is used to both read and write audio samples in order for them to be rendered or sent to remote peers.
int OpenTok.AudioDevice.AudioBus.ReadRenderData | ( | IntPtr | buffer, |
int | numberOfSamples | ||
) |
Reads audio data from subscriber audio streams to be rendered.
buffer | The buffer where the audio information will be written. |
numberOfSamples | The number of samples that are requested to be read. |
To maintain audio and video synchronization, this function returns the audio information to be renderer at the time of calling it. Take this into consideration if you call this function at a higher rate than the sampling rate. If you request one second of audio, it will return one second of audio unless there is an error.
int OpenTok.AudioDevice.AudioBus.WriteCaptureData | ( | IntPtr | buffer, |
int | numberOfSamples | ||
) |
Writes audio data (to publishers) to be captured and sent in the audio stream.
buffer | The buffer where the audio information will be read from. |
numberOfSamples | The number of samples that are requested to be sent. |