ClanLib
2.3.7
|
Sound Filter Class. More...
#include <soundfilter.h>
Public Member Functions | |
Construction | |
CL_SoundFilter () | |
Constructs a NULL instance. More... | |
CL_SoundFilter (CL_SoundFilterProvider *provider) | |
Constructs a sound filter. More... | |
~CL_SoundFilter () | |
Operators | |
bool | operator== (const CL_SoundFilter &other) const |
Equality operator. More... | |
bool | operator!= (const CL_SoundFilter &other) const |
Inequality operator. More... | |
Operations | |
bool | is_null () const |
Returns true if this object is invalid. More... | |
void | throw_if_null () const |
Throw an exception if this object is invalid. More... | |
CL_SoundFilterProvider * | get_provider () const |
Retrieves the provider. More... | |
void | filter (float **sample_data, int num_samples, int channels) |
Filter callback. More... | |
Public Attributes | |
Implementation | |
CL_SharedPtr< CL_SoundFilter_Impl > | impl |
Sound Filter Class.
|
inline |
Constructs a NULL instance.
CL_SoundFilter::CL_SoundFilter | ( | CL_SoundFilterProvider * | provider) |
Constructs a sound filter.
provider | = The provider |
CL_SoundFilter::~CL_SoundFilter | ( | ) |
void CL_SoundFilter::filter | ( | float ** | sample_data, |
int | num_samples, | ||
int | channels | ||
) |
Filter callback.
All sound data is passed through this function, which modifies the sample data accordingly to the function of the filter.
The format of the sample data is always 16 bit stereo.
CL_SoundFilterProvider* CL_SoundFilter::get_provider | ( | ) | const |
Retrieves the provider.
|
inline |
Returns true if this object is invalid.
|
inline |
Inequality operator.
References impl.
|
inline |
Equality operator.
References impl.
void CL_SoundFilter::throw_if_null | ( | ) | const |
Throw an exception if this object is invalid.
CL_SharedPtr<CL_SoundFilter_Impl> CL_SoundFilter::impl |
Referenced by operator!=(), and operator==().