42 std::vector<std::shared_ptr<ISound>> m_list;
47 bool m_random =
false;
57 std::recursive_mutex m_mutex;
76 SoundList(std::vector<std::shared_ptr<ISound>>& list,
bool random =
false);
86 void addSound(std::shared_ptr<ISound> sound);
93 void setRandomMode(
bool random);
100 bool getRandomMode();
#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 allows to have a list of sound that will play sequentially or randomly with each playback...
Definition: SoundList.h:36
This class represents a type of sound source and saves the necessary values for it.
Definition: ISound.h:39
#define AUD_NAMESPACE_END
Closes the audaspace namespace aud.
Definition: Audaspace.h:119
virtual std::shared_ptr< IReader > createReader()=0
Creates a reader for playback of the sound source.