mirror of
https://github.com/1dot13/source.git
synced 2026-07-29 13:52:17 +02:00
- sound manager now logs driver capabilities
git-svn-id: https://ja2svn.mooo.com/source/ja2/trunk/GameSource/ja2_v1.13/Build@596 3b4a5df2-a311-0410-b5c6-a8a6f20db521
This commit is contained in:
@@ -1359,11 +1359,26 @@ UINT32 uiCount;
|
||||
//*******************************************************************************
|
||||
BOOLEAN SoundInitHardware(void)
|
||||
{
|
||||
UINT32 uiCaps;
|
||||
|
||||
SoundLog("Init hardware...");
|
||||
|
||||
// Try to start up the FMOD Sound System
|
||||
FSOUND_SetOutput(FSOUND_OUTPUT_DSOUND);
|
||||
FSOUND_SetBufferSize(AUDIO_BUFFER_LEN);
|
||||
SoundLog((CHAR8 *)String(" Using DirectSound driver: %s", FSOUND_GetDriverName(FSOUND_GetDriver())));
|
||||
SoundLog(" Driver capabilities:");
|
||||
FSOUND_GetDriverCaps( FSOUND_GetDriver(), &uiCaps );
|
||||
|
||||
if ( uiCaps & FSOUND_CAPS_HARDWARE )
|
||||
SoundLog(" - supports hardware accelerated 3d sound");
|
||||
|
||||
if ( uiCaps & FSOUND_CAPS_EAX2 )
|
||||
SoundLog(" - supports EAX 2 reverb");
|
||||
|
||||
if ( uiCaps & FSOUND_CAPS_EAX3 )
|
||||
SoundLog(" - supports EAX 3 reverb");
|
||||
|
||||
if( !FSOUND_Init(44100, SOUND_MAX_CHANNELS, FSOUND_INIT_GLOBALFOCUS|FSOUND_INIT_DONTLATENCYADJUST) )
|
||||
{
|
||||
SoundLog((CHAR8 *)String(" ERROR in SoundInitHardware(): %s", FMOD_ErrorString(FSOUND_GetError())));
|
||||
@@ -1371,7 +1386,6 @@ BOOLEAN SoundInitHardware(void)
|
||||
}
|
||||
|
||||
SoundLog(" FMOD started");
|
||||
SoundLog((CHAR8 *)String(" Using DirectSound driver: %s", FSOUND_GetDriverName(FSOUND_GetDriver())));
|
||||
SoundLog((CHAR8 *)String(" Mixing rate: %d", FSOUND_GetOutputRate()));
|
||||
|
||||
// Driver is ready
|
||||
|
||||
Reference in New Issue
Block a user