Photon C++ Client API  5.0.7.3
Public Member Functions | List of all members
IAudioPusher< T > Class Template Referenceabstract

Audio Pusher interface. More...

Inheritance diagram for IAudioPusher< T >:
Inheritance graph
[legend]
Collaboration diagram for IAudioPusher< T >:
Collaboration graph
[legend]

Public Member Functions

virtual void setCallback (void *pLocalVoice, void(*pCallback)(void *, const Buffer< T > &))=0
 Set the callback function used for pushing data. More...
 
- Public Member Functions inherited from IAudioDesc
virtual int getSamplingRate (void) const =0
 Sampling rate of the audio signal (in Hz). More...
 
virtual int getChannels (void) const =0
 Number of channels in the audio signal. More...
 
virtual Common::JString getError (void) const =0
 If not null, audio object is in invalid state. More...
 
- Public Member Functions inherited from ToString
virtual ~ToString (void)
 
virtual JString typeToString (void) const
 
virtual JStringtoString (JString &retStr, bool withTypes=false) const =0
 
JString toString (bool withTypes=false) const
 

Detailed Description

template<typename T>
class ExitGames::Voice::IAudioPusher< T >

Audio Pusher interface.

an IAudioPusher will push its audio data whenever it is ready,

Member Function Documentation

◆ setCallback()

virtual void setCallback ( void *  pLocalVoice,
void(*)(void *, const Buffer< T > &)  pCallback 
)
pure virtual

Set the callback function used for pushing data.

Parameters
pLocalVoiceOutgoing audio stream, for context.
pCallbackCallback function to use.

Implemented in ToneAudioPusher< T >.