mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-29 20:28:56 +00:00
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:
parent
6b2b1a34ee
commit
58a78cb2b5
4 changed files with 23 additions and 10 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue