|
Audaspace 1.7.0
A high level audio library.
|
This class allows to create a sound with its own volume. More...
#include <VolumeSound.h>

Public Member Functions | |
| VolumeSound (std::shared_ptr< ISound > sound, std::shared_ptr< VolumeStorage > volumeStorage) | |
| Creates a new VolumeSound. | |
| virtual std::shared_ptr< IReader > | createReader () |
| Creates a reader for playback of the sound source. | |
| std::shared_ptr< VolumeStorage > | getSharedVolume () |
| Retrieves the shared volume of this sound. | |
| void | setSharedVolume (std::shared_ptr< VolumeStorage > volumeStorage) |
| Changes the shared volume of this sound, it'll only affect newly created readers. | |
| Public Member Functions inherited from ISound | |
| virtual | ~ISound () |
| Destroys the sound. | |
This class allows to create a sound with its own volume.
| VolumeSound::VolumeSound | ( | std::shared_ptr< ISound > | sound, |
| std::shared_ptr< VolumeStorage > | volumeStorage ) |
Creates a new VolumeSound.
| sound | The sound in which shall have its own volume. |
| volumeStorage | A shared pointer to a VolumeStorage object. It allows to change the volume of various sound in one go. |
|
virtual |
| std::shared_ptr< VolumeStorage > VolumeSound::getSharedVolume | ( | ) |
Retrieves the shared volume of this sound.
| void VolumeSound::setSharedVolume | ( | std::shared_ptr< VolumeStorage > | volumeStorage | ) |
Changes the shared volume of this sound, it'll only affect newly created readers.
| volumeStorage | A shared pointer to the new VolumeStorage object. |