This sound creates a IIR filter reader.
More...
#include <IIRFilter.h>
|
| IIRFilter (std::shared_ptr< ISound > sound, const std::vector< float > &b, const std::vector< float > &a) |
| Creates a new IIR filter sound.
|
|
virtual std::shared_ptr< IReader > | createReader () |
| Creates a reader for playback of the sound source.
|
|
| Effect (std::shared_ptr< ISound > sound) |
| Creates a new sound.
|
|
virtual | ~Effect () |
| Destroys the sound.
|
|
std::shared_ptr< ISound > | getSound () const |
| Returns the saved sound.
|
|
virtual | ~ISound () |
| Destroys the sound.
|
|
|
std::shared_ptr< IReader > | getReader () const |
| Returns the reader created out of the sound.
|
|
std::shared_ptr< ISound > | m_sound |
| If there is no reader it is created out of this sound.
|
|
This sound creates a IIR filter reader.
◆ IIRFilter()
IIRFilter::IIRFilter |
( |
std::shared_ptr< ISound > | sound, |
|
|
const std::vector< float > & | b, |
|
|
const std::vector< float > & | a ) |
Creates a new IIR filter sound.
- Parameters
-
sound | The input sound. |
b | The input filter coefficients. |
a | The output filter coefficients. |
◆ createReader()
virtual std::shared_ptr< IReader > IIRFilter::createReader |
( |
| ) |
|
|
virtual |
Creates a reader for playback of the sound source.
- Returns
- A pointer to an IReader object or nullptr if there has been an error.
- Exceptions
-
Exception | An exception may be thrown if there has been a more unexpected error during reader creation. |
Implements ISound.
The documentation for this class was generated from the following file: