diff --git a/src/ChargeAudio.hpp b/src/ChargeAudio.hpp index ff7337c..a469966 100644 --- a/src/ChargeAudio.hpp +++ b/src/ChargeAudio.hpp @@ -1,6 +1,7 @@ #ifndef CHARGE_AUDIO_BASE_H #define CHARGE_AUDIO_BASE_H #include +#include #include #include #include @@ -12,6 +13,9 @@ namespace _ma { } using namespace Corrade; using namespace _ma; + +typedef Containers::Pointer SoundContainer; +typedef Containers::Pointer ListenerContainer; class Sound { public: enum SoundState { Idle, Playing, Paused, Finished }; @@ -65,9 +69,8 @@ public: ~Engine(); // Creating tools - Containers::Pointer CreateSound(std::string filepath, - bool streamFile = false); - Containers::Pointer CreateListener(); + SoundContainer CreateSound(std::string filepath, bool streamFile = false); + ListenerContainer CreateListener(); void SetVolume(float value); float GetVolume();