From 2b333fab1df2786fd010bcc5af906490cb05e225 Mon Sep 17 00:00:00 2001 From: Chris Danford Date: Thu, 17 Jan 2002 19:59:06 +0000 Subject: [PATCH] FIXED: 500342 - wave volume changes to 100% on startup --- stepmania/src/RageSound.cpp | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/stepmania/src/RageSound.cpp b/stepmania/src/RageSound.cpp index 2cf32dfb01..2982d802ec 100644 --- a/stepmania/src/RageSound.cpp +++ b/stepmania/src/RageSound.cpp @@ -30,13 +30,16 @@ RageSound::RageSound( HWND hWnd ) if( BASS_GetVersion() != MAKELONG(1,3) ) RageError( "BASS version 1.3 DLL could not be loaded. Verify that Bass.dll exists in the program directory."); - if( !BASS_Init( -1, 44100, BASS_DEVICE_NOSYNC, m_hWndApp ) ) + if( !BASS_Init( -1, 44100, BASS_DEVICE_LEAVEVOL, m_hWndApp ) ) { - MessageBox( NULL, "There was an error while initializing your sound card.\n\n\ -The most likely cause of this problem is that you do not have a sound card\n\ -installed, or that you have not yet installed a driver for your sound card.\n\ -Before running this program again, please verify that your sound card is\n\ -is working in other Windows applications.", "Sound error", MB_ICONSTOP ); + MessageBox( NULL, + "There was an error while initializing your sound card.\n\n" + "The most likely cause of this problem is that you do not have a sound card\n" + "installed, or that you have not yet installed a driver for your sound card.\n" + "Before running this program again, please verify that your sound card is\n" + "is working in other Windows applications.", + "Sound error", + MB_ICONSTOP ); RageError( "BASS can't initialize sound device." ); }