![]() |
Photon Voice
v2.7
|
IAudioPusher< T > Interface Template Reference
Audio Pusher interface. More...
Inherits IAudioDesc.
Inherited by AudioUtil.ToneAudioPusher< T >.
Public Member Functions | |
void | SetCallback (Action< T[]> callback, ObjectFactory< T[], int > bufferFactory) |
Set the callback function used for pushing data. More... | |
Additional Inherited Members | |
![]() | |
int | SamplingRate [get] |
Sampling rate of the audio signal (in Hz). More... | |
int | Channels [get] |
Number of channels in the audio signal. More... | |
string | Error [get] |
If not null, audio object is in invalid state. More... | |
Detailed Description
Audio Pusher interface.
Opposed to an IAudioReader (which will deliver audio data when it is "pulled"), an IAudioPusher will push its audio data whenever it is ready,
Member Function Documentation
void SetCallback | ( | Action< T[]> | callback, |
ObjectFactory< T[], int > | bufferFactory | ||
) |
Set the callback function used for pushing data.
- Parameters
-
callback Callback function to use. localVoice Outgoing audio stream, for context.
Implemented in AudioUtil.ToneAudioPusher< T >.