Audaspace
1.4.0
A high level audio library.
|
This sound is a base class for all mixer factories. More...
#include <SpecsChanger.h>
Public Member Functions | |
SpecsChanger (std::shared_ptr< ISound > sound, DeviceSpecs specs) | |
Creates a new sound. More... | |
DeviceSpecs | getSpecs () const |
Returns the target specification for resampling. | |
std::shared_ptr< ISound > | getSound () const |
Returns the saved sound. More... | |
![]() | |
virtual | ~ISound () |
Destroys the sound. | |
virtual std::shared_ptr< IReader > | createReader ()=0 |
Creates a reader for playback of the sound source. More... | |
Protected Member Functions | |
std::shared_ptr< IReader > | getReader () const |
Returns the reader created out of the sound. More... | |
Protected Attributes | |
const DeviceSpecs | m_specs |
The target specification for resampling. | |
std::shared_ptr< ISound > | m_sound |
If there is no reader it is created out of this sound. | |
This sound is a base class for all mixer factories.
SpecsChanger::SpecsChanger | ( | std::shared_ptr< ISound > | sound, |
DeviceSpecs | specs | ||
) |
Creates a new sound.
sound | The sound to create the readers to mix out of. |
specs | The target specification. |
|
protected |
Returns the reader created out of the sound.
This method can be used for the createReader function of the implementing classes.
std::shared_ptr<ISound> SpecsChanger::getSound | ( | ) | const |
Returns the saved sound.