kills off the last vestiges of xenon support

This commit is contained in:
Azaezel 2017-07-09 15:05:56 -05:00
parent 412c0380f4
commit 5fcb90cafd
3 changed files with 3 additions and 11 deletions

View file

@ -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 ) );