Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Represents audio input stream used for custom audio input configurations.
Members
operator SPXAUDIOSTREAMHANDLE
Syntax: public inline explicit operator SPXAUDIOSTREAMHANDLE ( ) const;
Internal operator used to get underlying handle value.
Returns
A handle.
CreatePushStream
Syntax: public inline static std::shared_ptr< PushAudioInputStream > CreatePushStream ( );
Creates a memory backed PushAudioInputStream using the default format (16 kHz, 16 bit, mono PCM).
Returns
A shared pointer to PushAudioInputStream
CreatePushStream
Syntax: public inline static std::shared_ptr< PushAudioInputStream > CreatePushStream ( std::shared_ptr< AudioStreamFormat > format );
Creates a memory backed PushAudioInputStream with the specified audio format.
Parameters
formatAudio stream format.
Returns
A shared pointer to PushAudioInputStream
CreatePullStream
Syntax: public inline static std::shared_ptr< PullAudioInputStream > CreatePullStream ( void * pvContext , CUSTOM_AUDIO_PULL_STREAM_READ_CALLBACK readCallback , CUSTOM_AUDIO_PULL_STREAM_CLOSE_CALLBACK closeCallback );
Creates a PullAudioInputStream that delegates to the specified callback functions for Read() and Close() methods, using the default format (16 kHz, 16 bit, mono PCM).
Parameters
pvContextContext pointer to use when invoking the callbacks.readCallbackRead callback.closeCallbackClose callback.
Returns
A shared pointer to PullAudioInputStream
CreatePullStream
Syntax: public inline static std::shared_ptr< PullAudioInputStream > CreatePullStream ( void * pvContext , CUSTOM_AUDIO_PULL_STREAM_READ_CALLBACK readCallback , CUSTOM_AUDIO_PULL_STREAM_CLOSE_CALLBACK closeCallback , CUSTOM_AUDIO_PULL_STREAM_GET_PROPERTY_CALLBACK getPropertyCallback );
Creates a PullAudioInputStream that delegates to the specified callback functions for Read(), Close() and GetProperty() methods Added in version 1.5.0.
Parameters
pvContextContext pointer to use when invoking the callbacks.readCallbackRead callback.closeCallbackClose callback.getPropertyCallbackGetProperty callback.
Returns
A shared pointer to PullAudioInputStream
CreatePullStream
Syntax: public inline static std::shared_ptr< PullAudioInputStream > CreatePullStream ( ReadCallbackFunction_Type readCallback , CloseCallbackFunction_Type closeCallback );
Creates a PullAudioInputStream that delegates to the specified callback functions for Read() and Close() methods, using the default format (16 kHz, 16 bit, mono PCM).
Parameters
readCallbackRead callback.closeCallbackClose callback.
Returns
A shared pointer to PullAudioInputStream
CreatePullStream
Syntax: public inline static std::shared_ptr< PullAudioInputStream > CreatePullStream ( ReadCallbackFunction_Type readCallback , CloseCallbackFunction_Type closeCallback , GetPropertyCallbackFunction_Type getPropertyCallback );
Creates a PullAudioInputStream that delegates to the specified callback functions for Read(), Close() and GetProperty() methods. Added in version 1.5.0.
Parameters
readCallbackRead callback.closeCallbackClose callback.getPropertyCallbackGet property callback.
Returns
A shared pointer to PullAudioInputStream
CreatePullStream
Syntax: public inline static std::shared_ptr< PullAudioInputStream > CreatePullStream ( std::shared_ptr< PullAudioInputStreamCallback > callback );
Creates a PullAudioInputStream that delegates to the specified callback interface for the Read() and Close() methods, using the default format (16 kHz, 16 bit, mono PCM).
Parameters
callbackShared pointer to PullAudioInputStreamCallback instance.
Returns
A shared pointer to PullAudioInputStream
CreatePullStream
Syntax: public inline static std::shared_ptr< PullAudioInputStream > CreatePullStream ( std::shared_ptr< AudioStreamFormat > format , void * pvContext , CUSTOM_AUDIO_PULL_STREAM_READ_CALLBACK readCallback , CUSTOM_AUDIO_PULL_STREAM_CLOSE_CALLBACK closeCallback );
Creates a PullAudioInputStream that delegates to the specified callback functions for Read() and Close() methods.
Parameters
formatAudio stream format.pvContextContext pointer to use when invoking the callbacks.readCallbackRead callback.closeCallbackClose callback.
Returns
A shared pointer to PullAudioInputStream
CreatePullStream
Syntax: public inline static std::shared_ptr< PullAudioInputStream > CreatePullStream ( std::shared_ptr< AudioStreamFormat > format , void * pvContext , CUSTOM_AUDIO_PULL_STREAM_READ_CALLBACK readCallback , CUSTOM_AUDIO_PULL_STREAM_CLOSE_CALLBACK closeCallback , CUSTOM_AUDIO_PULL_STREAM_GET_PROPERTY_CALLBACK getPropertyCallback );
Creates a PullAudioInputStream that delegates to the specified callback functions for Read(), Close() and GetProperty() methods. Added in version 1.5.0.
Parameters
formatAudio stream format.pvContextContext pointer to use when invoking the callbacks.readCallbackRead callback.closeCallbackClose callback.getPropertyCallbackGet property callback.
Returns
A shared pointer to PullAudioInputStream
CreatePullStream
Syntax: public inline static std::shared_ptr< PullAudioInputStream > CreatePullStream ( std::shared_ptr< AudioStreamFormat > format , ReadCallbackFunction_Type readCallback , CloseCallbackFunction_Type closeCallback );
Creates a PullAudioInputStream that delegates to the specified callback functions for Read() and Close() methods.
Parameters
formatAudio stream format.readCallbackRead callback.closeCallbackClose callback.
Returns
A shared pointer to PullAudioInputStream
CreatePullStream
Syntax: public inline static std::shared_ptr< PullAudioInputStream > CreatePullStream ( std::shared_ptr< AudioStreamFormat > format , ReadCallbackFunction_Type readCallback , CloseCallbackFunction_Type closeCallback , GetPropertyCallbackFunction_Type getPropertyCallback );
Creates a PullAudioInputStream that delegates to the specified callback functions for Read() and Close() methods. Added in version 1.5.0.
Parameters
formatAudio stream format.readCallbackRead callback.closeCallbackClose callback.getPropertyCallbackGet property callback.
Returns
A shared pointer to PullAudioInputStream
CreatePullStream
Syntax: public inline static std::shared_ptr< PullAudioInputStream > CreatePullStream ( std::shared_ptr< AudioStreamFormat > format , std::shared_ptr< PullAudioInputStreamCallback > callback );
Creates a PullAudioInputStream that delegates to the specified callback interface for the Read() and Close() methods, using the specified format.
Parameters
formatAudio stream format.callbackShared pointer to PullAudioInputStreamCallback instance.
Returns
A shared pointer to PullAudioInputStream
ReadCallbackFunction_Type
Syntax: typedef ReadCallbackFunction_Type;
CloseCallbackFunction_Type
Syntax: typedef CloseCallbackFunction_Type;
GetPropertyCallbackFunction_Type
Syntax: typedef GetPropertyCallbackFunction_Type;
Added in version 1.5.0.