List of all members.
Public Member Functions
|virtual bool||Configure (SoundIoSpeexProps const &props, ErrorInfo *error=0)=0|
|Set signal processing configuration. |
|virtual bool||FltPrepare (SoundIoFormat const &fmt, bool up, bool dn, ErrorInfo *error=0)=0|
|Request filter to prepare for stream processing. |
|virtual void||FltCleanup (void)=0|
|Release filter from stream processing. |
|virtual SoundIoBuffer const *||FltProcess (bool up, SoundIoBuffer const &src, SoundIoBuffer &dest)=0|
|Request processing of a sample buffer. |
|virtual bool FltPrepare||(||SoundIoFormat const &||fmt,|
|ErrorInfo *|| error = |
Request filter to prepare for stream processing.
As part of starting stream processing, SoundIoPump will invoke this method on all registered filters.
|[in]||fmt||PCM audio format to be used in the stream|
|[out]||error||Error information structure. If this method fails and returns false, and error is not 0, error will be filled out with information on the cause of the failure.|
|true||Filter is prepared and ready to process samples.|
|false||Filter is not prepared, effectively vetoing stream setup. This will cause SoundIoPump::Start() to fail.|
true. For single direction streams, either
If this method succeeds, future calls to FltProcess() may be made.
|virtual void FltCleanup||(||void||)||
Release filter from stream processing.
As part of terminating stream processing, SoundIoPump will invoke this method on all registered filters.
|virtual SoundIoBuffer const* FltProcess||(||bool||up,|
|SoundIoBuffer const &||src,|
Request processing of a sample buffer.
The SoundIoPump object handles transfer of samples between two SoundIo objects, referred to as its bottom and top endpoints. Between the endpoints, filters may be stacked to intercept and process samples as they pass between the endpoints.
Sample data in a bidirectional pump configuration is transferred first from top to bottom, then bottom to top. In such a configuration, for each packet of sample data transferred, each filter will receive a FltProcess() call with
false, then another FltProcess() call with
|src||Buffer containing source samples for filter|
|dest||Buffer to contain result samples from filter, if modification is required.|