Photon Voice: IAudioPusher< T > Interface Template Reference

Photon Voice

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

- Properties inherited from IAudioDesc
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
callbackCallback function to use.
localVoiceOutgoing audio stream, for context.

Implemented in AudioUtil.ToneAudioPusher< T >.

Online Documentation  -  Dashboard  -  Support Forum Exit Games GmbH