29 #include <unordered_map> 44 std::unordered_map<unsigned int, std::shared_ptr<PlaybackCategory>> m_categories;
49 std::shared_ptr<IDevice> m_device;
54 unsigned int m_currentKey;
72 unsigned int addCategory(std::shared_ptr<PlaybackCategory> category);
79 unsigned int addCategory(
float volume);
87 std::shared_ptr<IHandle> play(std::shared_ptr<ISound> sound,
unsigned int catKey);
96 bool resume(
unsigned int catKey);
105 bool pause(
unsigned int catKey);
112 float getVolume(
unsigned int catKey);
122 bool setVolume(
float volume,
unsigned int catKey);
131 bool stop(
unsigned int catKey);
147 bool clean(
unsigned int catKey);
153 std::shared_ptr<IDevice> getDevice();
#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
The PlaybackCategory class.
#define AUD_NAMESPACE_END
Closes the audaspace namespace aud.
Definition: Audaspace.h:119
This class allows to control groups of playing sounds easily.
Definition: PlaybackManager.h:38