|
Audaspace 1.8.0
A high level audio library.
|
This sound changes the volume of another sound. More...
#include <Volume.h>

Public Member Functions | |
| Volume (std::shared_ptr< ISound > sound, float volume) | |
| Creates a new volume sound. | |
| float | getVolume () const |
| Returns the volume. | |
| virtual std::shared_ptr< IReader > | createReader () |
| Creates a reader for playback of the sound source. | |
| Public Member Functions inherited from Effect | |
| 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. | |
| Public Member Functions inherited from ISound | |
| virtual | ~ISound () |
| Destroys the sound. | |
Additional Inherited Members | |
| Protected Member Functions inherited from Effect | |
| std::shared_ptr< IReader > | getReader () const |
| Returns the reader created out of the sound. | |
| Protected Attributes inherited from Effect | |
| std::shared_ptr< ISound > | m_sound |
| If there is no reader it is created out of this sound. | |
This sound changes the volume of another sound.
The set volume should be a value between 0.0 and 1.0, higher values at your own risk!
| Volume::Volume | ( | std::shared_ptr< ISound > | sound, |
| float | volume ) |
Creates a new volume sound.
| sound | The input sound. |
| volume | The desired volume. |
|
virtual |
| float Volume::getVolume | ( | ) | const |
Returns the volume.