Make openal works on linux

git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@2805 8ced0084-cf51-0410-be5f-012b33b47a6e
This commit is contained in:
nakeee
2009-03-30 17:24:55 +00:00
parent 6b2b1a34ee
commit 58a78cb2b5
4 changed files with 23 additions and 10 deletions

View File

@ -21,17 +21,18 @@
#include "SoundStream.h"
#include "Thread.h"
//#include <list>
//using namespace std;
#ifdef HAVE_OPENAL && HAVE_OPENAL
#include "../../../../Externals/OpenAL/include/al.h"
#include "../../../../Externals/OpenAL/include/alc.h"
// public use
#define SFX_MAX_SOURCE 1
#endif
class OpenALStream: public SoundStream
{
#ifdef HAVE_OPENAL && HAVE_OPENAL
public:
OpenALStream(CMixer *mixer, void *hWnd = NULL): SoundStream(mixer) {};
virtual ~OpenALStream() {};
@ -49,6 +50,12 @@ private:
Common::Thread *thread;
Common::CriticalSection soundCriticalSection;
Common::Event soundSyncEvent;
#else
OpenALStream(CMixer *mixer, void *hWnd = NULL): SoundStream(mixer) {}
#endif // HAVE_OPENAL
};
#endif
#endif // OPENALSTREAM