mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-03-03 20:40:35 +00:00
OpenAL Initialization
-Device capabilities left until a device is actually selected and is loading -ALDEVICEINFO possibly no longer needed. -aldlist possibly no longer required as well.
This commit is contained in:
parent
16062fb996
commit
4006615723
7 changed files with 306 additions and 206 deletions
|
|
@ -100,26 +100,6 @@ void SFXALProvider::init()
|
|||
|
||||
info->name = String( mALDL->GetDeviceName( i ) );
|
||||
|
||||
S32 major, minor, eax = 0;
|
||||
|
||||
mALDL->GetDeviceVersion( i, &major, &minor );
|
||||
|
||||
// Apologies for the blatent enum hack -patw
|
||||
for( S32 j = SFXALEAX2; j < SFXALEAXRAM; j++ )
|
||||
eax += (int)mALDL->IsExtensionSupported( i, (SFXALCaps)j );
|
||||
|
||||
if( eax > 0 )
|
||||
{
|
||||
eax += 2; // EAX support starts at 2.0
|
||||
dSprintf( temp, sizeof( temp ), "[EAX %d.0] %s", eax, ( mALDL->IsExtensionSupported( i, SFXALEAXRAM ) ? "EAX-RAM" : "" ) );
|
||||
}
|
||||
else
|
||||
dStrcpy( temp, "", 256 );
|
||||
|
||||
info->driver = String::ToString( deviceFormat, major, minor, temp );
|
||||
info->hasHardware = eax > 0;
|
||||
info->maxBuffers = mALDL->GetMaxNumSources( i );
|
||||
|
||||
mDeviceInfo.push_back( info );
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue