summaryrefslogtreecommitdiffstats
path: root/src/audio/sampman_oal.cpp
diff options
context:
space:
mode:
authorerorcun <erorcunerorcun@hotmail.com.tr>2021-01-16 14:44:59 +0100
committershfil <filip.gawin@zoho.com>2021-01-17 21:32:54 +0100
commit5a47379bf5f011a65c1d0f88a0cb5f2130feb9db (patch)
treed3b13533c6058d2b26035d180e4a7e8b735c283c /src/audio/sampman_oal.cpp
parentvehicle fixes (diff)
downloadre3-5a47379bf5f011a65c1d0f88a0cb5f2130feb9db.tar
re3-5a47379bf5f011a65c1d0f88a0cb5f2130feb9db.tar.gz
re3-5a47379bf5f011a65c1d0f88a0cb5f2130feb9db.tar.bz2
re3-5a47379bf5f011a65c1d0f88a0cb5f2130feb9db.tar.lz
re3-5a47379bf5f011a65c1d0f88a0cb5f2130feb9db.tar.xz
re3-5a47379bf5f011a65c1d0f88a0cb5f2130feb9db.tar.zst
re3-5a47379bf5f011a65c1d0f88a0cb5f2130feb9db.zip
Diffstat (limited to 'src/audio/sampman_oal.cpp')
-rw-r--r--src/audio/sampman_oal.cpp33
1 files changed, 14 insertions, 19 deletions
diff --git a/src/audio/sampman_oal.cpp b/src/audio/sampman_oal.cpp
index bb7f0aac..798ea287 100644
--- a/src/audio/sampman_oal.cpp
+++ b/src/audio/sampman_oal.cpp
@@ -1,17 +1,11 @@
//#define JUICY_OAL
#ifdef AUDIO_OAL
-#include "sampman.h"
-
#include <time.h>
#include "eax.h"
#include "eax-util.h"
-#define WITHWINDOWS
-#include "common.h"
-#include "crossplatform.h"
-
#ifdef _WIN32
#include <io.h>
#include <AL/al.h>
@@ -19,8 +13,22 @@
#include <AL/alext.h>
#include <AL/efx.h>
#include <AL/efx-presets.h>
+
+#pragma comment(lib, "OpenAL32.lib")
+
+// for user MP3s
+#include <direct.h>
+#include <shlobj.h>
+#include <shlguid.h>
+#else
+#define _getcwd getcwd
#endif
+#include "common.h"
+#include "crossplatform.h"
+
+#include "sampman.h"
+
#include "oal/oal_utils.h"
#include "oal/aldlist.h"
#include "oal/channel.h"
@@ -38,19 +46,6 @@
//TODO: max channels
//TODO: loop count
-#ifdef _WIN32
-#pragma comment( lib, "OpenAL32.lib" )
-#endif
-
-// for user MP3s
-#ifdef _WIN32
-#include <direct.h>
-#include <shobjidl.h>
-#include <shlguid.h>
-#else
-#define _getcwd getcwd
-#endif
-
cSampleManager SampleManager;
bool _bSampmanInitialised = false;