mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-04-29 08:15:44 +00:00
Changes for Linux.
This commit is contained in:
parent
aa35157eef
commit
3336bffad2
30 changed files with 99 additions and 173 deletions
|
|
@ -30,6 +30,9 @@
|
|||
#if defined(TORQUE_OS_MAC)
|
||||
# include <OpenAL/al.h>
|
||||
# include <OpenAL/alc.h>
|
||||
#elif defined(TORQUE_OS_LINUX)
|
||||
# include <AL/al.h>
|
||||
# include <AL/alc.h>
|
||||
#else
|
||||
# include <al/al.h>
|
||||
# include <al/alc.h>
|
||||
|
|
|
|||
|
|
@ -27,6 +27,8 @@
|
|||
#include "aldlist.h"
|
||||
#if defined(TORQUE_OS_MAC)
|
||||
#include <OpenAL/alc.h>
|
||||
#elif defined(TORQUE_OS_LINUX)
|
||||
#include <AL/alc.h>
|
||||
#else
|
||||
#include <al/alc.h>
|
||||
#endif
|
||||
|
|
|
|||
|
|
@ -60,7 +60,7 @@ SFXALDevice::SFXALDevice( SFXProvider *provider,
|
|||
AssertFatal( mDevice != NULL && mContext != NULL, "Failed to create OpenAL device and/or context!" );
|
||||
|
||||
// Start the update thread.
|
||||
|
||||
#ifndef TORQUE_OS_LINUX
|
||||
if( !Con::getBoolVariable( "$_forceAllMainThread" ) )
|
||||
{
|
||||
SFXInternal::gUpdateThread = new AsyncPeriodicUpdateThread
|
||||
|
|
@ -68,6 +68,7 @@ SFXALDevice::SFXALDevice( SFXProvider *provider,
|
|||
Con::getIntVariable( "$pref::SFX::updateInterval", SFXInternal::DEFAULT_UPDATE_INTERVAL ) );
|
||||
SFXInternal::gUpdateThread->start();
|
||||
}
|
||||
#endif
|
||||
}
|
||||
|
||||
//-----------------------------------------------------------------------------
|
||||
|
|
|
|||
|
|
@ -24,6 +24,7 @@
|
|||
#include "sfx/sfxProvider.h"
|
||||
#include "sfx/openal/sfxALDevice.h"
|
||||
#include "sfx/openal/aldlist.h"
|
||||
#include "sfx/openal/LoadOAL.h"
|
||||
|
||||
#include "core/strings/stringFunctions.h"
|
||||
#include "console/console.h"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue