mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-04-24 13:55:34 +00:00
kills off the last vestiges of xenon support
This commit is contained in:
parent
412c0380f4
commit
5fcb90cafd
3 changed files with 3 additions and 11 deletions
|
|
@ -146,11 +146,9 @@ bool SFXXAudioProvider::_createXAudio( IXAudio2 **xaudio )
|
|||
#define XAUDIO_FLAGS 0
|
||||
#endif
|
||||
|
||||
#ifndef TORQUE_OS_XENON
|
||||
// This must be called first... it doesn't hurt to
|
||||
// call it more than once.
|
||||
CoInitialize( NULL );
|
||||
#endif
|
||||
|
||||
// Try creating the xaudio engine.
|
||||
HRESULT hr = XAudio2Create( xaudio, XAUDIO_FLAGS, XAUDIO2_DEFAULT_PROCESSOR );
|
||||
|
|
@ -162,10 +160,7 @@ SFXDevice* SFXXAudioProvider::createDevice( const String& deviceName, bool useHa
|
|||
{
|
||||
String devName;
|
||||
|
||||
// On the 360, ignore what the prefs say, and create the only audio device
|
||||
#ifndef TORQUE_OS_XENON
|
||||
devName = deviceName;
|
||||
#endif
|
||||
|
||||
XADeviceInfo* info = dynamic_cast< XADeviceInfo* >( _findDeviceInfo( devName ) );
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue