|
Audaspace
1.3.0
A high level audio library.
|
This class represents a sound that can be modified depending on a given impulse response. More...
#include <ConvolverSound.h>

Public Member Functions | |
| ConvolverSound (std::shared_ptr< ISound > sound, std::shared_ptr< ImpulseResponse > impulseResponse, std::shared_ptr< ThreadPool > threadPool, std::shared_ptr< FFTPlan > plan) | |
| Creates a new ConvolverSound. More... | |
| ConvolverSound (std::shared_ptr< ISound > sound, std::shared_ptr< ImpulseResponse > impulseResponse, std::shared_ptr< ThreadPool > threadPool) | |
| Creates a new ConvolverSound. More... | |
| virtual std::shared_ptr< IReader > | createReader () |
| Creates a reader for playback of the sound source. More... | |
| std::shared_ptr< ImpulseResponse > | getImpulseResponse () |
| Retrieves the impulse response sound being used. More... | |
| void | setImpulseResponse (std::shared_ptr< ImpulseResponse > impulseResponse) |
| Changes the inpulse response used for convolution, it'll only affect newly created readers. More... | |
Public Member Functions inherited from ISound | |
| virtual | ~ISound () |
| Destroys the sound. | |
This class represents a sound that can be modified depending on a given impulse response.
| ConvolverSound::ConvolverSound | ( | std::shared_ptr< ISound > | sound, |
| std::shared_ptr< ImpulseResponse > | impulseResponse, | ||
| std::shared_ptr< ThreadPool > | threadPool, | ||
| std::shared_ptr< FFTPlan > | plan | ||
| ) |
Creates a new ConvolverSound.
| sound | The sound that will be convolved. |
| impulseResponse | The impulse response sound. |
| threadPool | A shared pointer to a ThreadPool object with 1 or more threads. |
| plan | A shared pointer to a FFTPlan object that will be used for convolution. |
| ConvolverSound::ConvolverSound | ( | std::shared_ptr< ISound > | sound, |
| std::shared_ptr< ImpulseResponse > | impulseResponse, | ||
| std::shared_ptr< ThreadPool > | threadPool | ||
| ) |
Creates a new ConvolverSound.
A default FFT plan will be created.
| sound | The sound that will be convolved. |
| impulseResponse | The impulse response sound. |
| threadPool | A shared pointer to a ThreadPool object with 1 or more threads. |
|
virtual |
| std::shared_ptr<ImpulseResponse> ConvolverSound::getImpulseResponse | ( | ) |
Retrieves the impulse response sound being used.
| void ConvolverSound::setImpulseResponse | ( | std::shared_ptr< ImpulseResponse > | impulseResponse | ) |
Changes the inpulse response used for convolution, it'll only affect newly created readers.
| impulseResponse | A shared pointer to the new impulse response sound. |
1.8.11