|
@@ -2474,7 +2474,7 @@ bool OpenALInit()
|
|
return false;
|
|
return false;
|
|
|
|
|
|
// Create an openAL context
|
|
// Create an openAL context
|
|
-#ifdef TORQUE_OS_LINUX
|
|
|
|
|
|
+#if defined(TORQUE_OS_LINUX) || defined(TORQUE_OS_OPENBSD)
|
|
int freq = Con::getIntVariable("Pref::Unix::OpenALFrequency");
|
|
int freq = Con::getIntVariable("Pref::Unix::OpenALFrequency");
|
|
if (freq == 0)
|
|
if (freq == 0)
|
|
freq = 22050;
|
|
freq = 22050;
|
|
@@ -2504,7 +2504,7 @@ bool OpenALInit()
|
|
return false;
|
|
return false;
|
|
|
|
|
|
// Make this context the active context
|
|
// Make this context the active context
|
|
-#if defined(TORQUE_OS_ANDROID) || defined(TORQUE_OS_LINUX) || defined(TORQUE_OS_EMSCRIPTEN)
|
|
|
|
|
|
+#if defined(TORQUE_OS_ANDROID) || defined(TORQUE_OS_LINUX) || defined(TORQUE_OS_EMSCRIPTEN) || defined(TORQUE_OS_OPENBSD)
|
|
alcMakeContextCurrent((ALCcontext*)mContext);
|
|
alcMakeContextCurrent((ALCcontext*)mContext);
|
|
#else
|
|
#else
|
|
alcMakeContextCurrent(mContext);
|
|
alcMakeContextCurrent(mContext);
|
|
@@ -2590,7 +2590,7 @@ void OpenALShutdown()
|
|
|
|
|
|
if (mContext)
|
|
if (mContext)
|
|
{
|
|
{
|
|
-#if defined(TORQUE_OS_ANDROID) || defined(TORQUE_OS_LINUX)
|
|
|
|
|
|
+#if defined(TORQUE_OS_ANDROID) || defined(TORQUE_OS_LINUX) || defined(TORQUE_OS_OPENBSD)
|
|
alcDestroyContext((ALCcontext*)mContext);
|
|
alcDestroyContext((ALCcontext*)mContext);
|
|
#elif defined(TORQUE_OS_EMSCRIPTEN)
|
|
#elif defined(TORQUE_OS_EMSCRIPTEN)
|
|
alcDestroyContext((ALCcontext*)mContext);
|
|
alcDestroyContext((ALCcontext*)mContext);
|
|
@@ -2602,7 +2602,7 @@ void OpenALShutdown()
|
|
}
|
|
}
|
|
if (mDevice)
|
|
if (mDevice)
|
|
{
|
|
{
|
|
-#if defined(TORQUE_OS_ANDROID) || defined(TORQUE_OS_LINUX)
|
|
|
|
|
|
+#if defined(TORQUE_OS_ANDROID) || defined(TORQUE_OS_LINUX) || defined(TORQUE_OS_OPENBSD)
|
|
alcCloseDevice((ALCdevice*)mDevice);
|
|
alcCloseDevice((ALCdevice*)mDevice);
|
|
#elif defined(TORQUE_OS_EMSCRIPTEN)
|
|
#elif defined(TORQUE_OS_EMSCRIPTEN)
|
|
alcCloseDevice((ALCdevice*)mDevice);
|
|
alcCloseDevice((ALCdevice*)mDevice);
|