Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'intern/SoundSystem/openal/SND_OpenALDevice.h')
-rw-r--r--intern/SoundSystem/openal/SND_OpenALDevice.h17
1 files changed, 11 insertions, 6 deletions
diff --git a/intern/SoundSystem/openal/SND_OpenALDevice.h b/intern/SoundSystem/openal/SND_OpenALDevice.h
index ad7cbe68a19..f204d2d0371 100644
--- a/intern/SoundSystem/openal/SND_OpenALDevice.h
+++ b/intern/SoundSystem/openal/SND_OpenALDevice.h
@@ -35,6 +35,8 @@
#include "SND_AudioDevice.h"
#include "SoundDefines.h"
+typedef struct SDL_CD;
+
class SND_OpenALDevice : public SND_AudioDevice
{
public:
@@ -54,6 +56,7 @@ public:
void MakeCurrent() const;
void NextFrame() const;
+ void UseCD() const;
void SetObjectBuffer(int id, unsigned int buffer);
@@ -64,7 +67,7 @@ public:
void PauseObject(int id) const;
void SetObjectLoop(int id, unsigned int loopmode) const;
- void SetObjectLoopPoints(int id, unsigned int loopstart, unsigned int loopend) const {};
+ void SetObjectLoopPoints(int id, unsigned int loopstart, unsigned int loopend) const;
void SetObjectPitch(int id, MT_Scalar pitch) const;
void SetObjectGain(int id, MT_Scalar gain) const;
void SetObjectMinGain(int id, MT_Scalar mingain) const;
@@ -80,11 +83,11 @@ public:
const MT_Scalar& rollofffactor) const;
void ObjectIs2D(int id) const;
- void PlayCD(int track) const {};
- void PauseCD(bool pause) const {};
- void StopCD() const {};
- void SetCDPlaymode(int playmode) const {};
- void SetCDGain(MT_Scalar gain) const {};
+ void PlayCD(int track) const;
+ void PauseCD(bool pause) const;
+ void StopCD() const;
+ void SetCDPlaymode(int playmode) const;
+ void SetCDGain(MT_Scalar gain) const;
void StartUsingDSP() {};
float* GetSpectrum() { return NULL; }
@@ -97,6 +100,8 @@ private:
unsigned int m_sources[NUM_SOURCES];
bool m_buffersinitialized;
bool m_sourcesinitialized;
+
+ class SND_SDLCDDevice* m_cdrom;
};
#endif //SND_OPENALDEVICE