40 std::shared_ptr<ISound> m_sound;
45 std::shared_ptr<VolumeStorage> m_volumeStorage;
57 VolumeSound(std::shared_ptr<ISound> sound, std::shared_ptr<VolumeStorage> volumeStorage);
#define AUD_NAMESPACE_END
Closes the audaspace namespace aud.
Definition Audaspace.h:119
#define AUD_NAMESPACE_BEGIN
Opens the audaspace namespace aud.
Definition Audaspace.h:116
#define AUD_API
Used for exporting symbols in the shared library.
Definition Audaspace.h:93
This class represents a type of sound source and saves the necessary values for it.
Definition ISound.h:40
This class allows to create a sound with its own volume.
Definition VolumeSound.h:35
VolumeSound(std::shared_ptr< ISound > sound, std::shared_ptr< VolumeStorage > volumeStorage)
Creates a new VolumeSound.
void setSharedVolume(std::shared_ptr< VolumeStorage > volumeStorage)
Changes the shared volume of this sound, it'll only affect newly created readers.
std::shared_ptr< VolumeStorage > getSharedVolume()
Retrieves the shared volume of this sound.
virtual std::shared_ptr< IReader > createReader()
Creates a reader for playback of the sound source.