class Audio::PushAudioOutputStream
class Audio::PushAudioOutputStream
: public Audio::AudioOutputStream
Push audio output stream class. Added in version 1.4.0.
Members
Create
Syntax: public inline static std::shared_ptr< PushAudioOutputStream > Create ( void * pvContext , CUSTOM_AUDIO_PUSH_STREAM_WRITE_CALLBACK writeCallback , CUSTOM_AUDIO_PUSH_STREAM_CLOSE_CALLBACK closeCallback );
Creates a PushAudioOutputStream utilizing the specified Write() and Close() "C" callback functions pointers.
Parameters
pvContext
Context pointer to use when invoking the callbacks.writeCallback
Write callback.closeCallback
Close callback.
Returns
A shared pointer to PushAudioOutputStream
Create
Syntax: public inline static std::shared_ptr< PushAudioOutputStream > Create ( WriteCallbackFunction_Type writeCallback , CloseCallbackFunction_Type closeCallback );
Creates a PushAudioOutputStream utilizing the specified Write() and Close() callback functions.
Parameters
writeCallback
Write callback.closeCallback
Close callback.
Returns
A shared pointer to PushAudioOutputStream
Create
Syntax: public inline static std::shared_ptr< PushAudioOutputStream > Create ( std::shared_ptr< PushAudioOutputStreamCallback > callback );
Creates a PushAudioOutputStream utilizing the specified callback interface with Write() and Close() callback function.
Parameters
callback
Shared pointer to PushAudioOutputStreamCallback instance.
Returns
A shared pointer to PushAudioOutputStream