diff options
Diffstat (limited to 'intern/audaspace/intern/AUD_SoftwareDevice.h')
-rw-r--r-- | intern/audaspace/intern/AUD_SoftwareDevice.h | 21 |
1 files changed, 14 insertions, 7 deletions
diff --git a/intern/audaspace/intern/AUD_SoftwareDevice.h b/intern/audaspace/intern/AUD_SoftwareDevice.h index a12fddb1e00..93b0f165c7a 100644 --- a/intern/audaspace/intern/AUD_SoftwareDevice.h +++ b/intern/audaspace/intern/AUD_SoftwareDevice.h @@ -29,6 +29,7 @@ #include "AUD_IDevice.h" struct AUD_SoftwareHandle; class AUD_Mixer; +class AUD_Buffer; #include <list> #include <pthread.h> @@ -81,12 +82,12 @@ private: /** * The list of sounds that are currently playing. */ - std::list<AUD_SoftwareHandle*>* m_playingSounds; + std::list<AUD_SoftwareHandle*> m_playingSounds; /** * The list of sounds that are currently paused. */ - std::list<AUD_SoftwareHandle*>* m_pausedSounds; + std::list<AUD_SoftwareHandle*> m_pausedSounds; /** * Whether there is currently playback. @@ -111,21 +112,27 @@ private: bool isValid(AUD_Handle* handle); public: - virtual AUD_DeviceSpecs getSpecs(); + virtual AUD_DeviceSpecs getSpecs() const; virtual AUD_Handle* play(AUD_IFactory* factory, bool keep = false); virtual bool pause(AUD_Handle* handle); virtual bool resume(AUD_Handle* handle); virtual bool stop(AUD_Handle* handle); + virtual bool getKeep(AUD_Handle* handle); virtual bool setKeep(AUD_Handle* handle, bool keep); - virtual bool sendMessage(AUD_Handle* handle, AUD_Message &message); virtual bool seek(AUD_Handle* handle, float position); virtual float getPosition(AUD_Handle* handle); virtual AUD_Status getStatus(AUD_Handle* handle); virtual void lock(); virtual void unlock(); - virtual bool checkCapability(int capability); - virtual bool setCapability(int capability, void *value); - virtual bool getCapability(int capability, void *value); + virtual float getVolume() const; + virtual void setVolume(float volume); + virtual float getVolume(AUD_Handle* handle); + virtual bool setVolume(AUD_Handle* handle, float volume); + virtual float getPitch(AUD_Handle* handle); + virtual bool setPitch(AUD_Handle* handle, float pitch); + virtual int getLoopCount(AUD_Handle* handle); + virtual bool setLoopCount(AUD_Handle* handle, int count); + virtual bool setStopCallback(AUD_Handle* handle, stopCallback callback = NULL, void* data = NULL); }; #endif //AUD_SOFTWAREDEVICE |