From 94e4f5676844217f8f23d679e801a5d33d439b9c Mon Sep 17 00:00:00 2001 From: Lesh Date: Sun, 8 Oct 2006 09:16:03 +0000 Subject: [PATCH] - 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 --- Standard Gaming Platform/soundman.cpp | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/Standard Gaming Platform/soundman.cpp b/Standard Gaming Platform/soundman.cpp index 961679a3e..2b179c26e 100644 --- a/Standard Gaming Platform/soundman.cpp +++ b/Standard Gaming Platform/soundman.cpp @@ -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