mirror of
https://github.com/1dot13/source.git
synced 2026-08-05 14:00:23 +02:00
New options to control Sector Steady Ambients:
ENABLE_SSA (default FALSE) VOLUME_SSA (default 50) DEBUG_SSA (default FALSE) Increased number of sound channels to 64. SoundPlay(): show more information when failed to play sound. PlayVoiceTaunt(): limit max number of voices to 99. vfs::String::as_utf16(): show original string if failed to convert. git-svn-id: https://ja2svn.mooo.com/source/ja2/trunk/GameSource/ja2_v1.13/Build@8745 3b4a5df2-a311-0410-b5c6-a8a6f20db521
This commit is contained in:
+19
-1
@@ -520,6 +520,9 @@ void SetPendingNewScreen( UINT32 uiNewScreen )
|
||||
extern UINT32 guiRainLoop;
|
||||
// end rain
|
||||
|
||||
// sevenfm
|
||||
extern UINT32 guiCurrentSteadyStateSoundHandle;
|
||||
|
||||
// Gets called when the screen changes, place any needed in code in here
|
||||
void HandleNewScreenChange( UINT32 uiNewScreen, UINT32 uiOldScreen )
|
||||
{
|
||||
@@ -541,8 +544,23 @@ void HandleNewScreenChange( UINT32 uiNewScreen, UINT32 uiOldScreen )
|
||||
}
|
||||
// end rain
|
||||
|
||||
if (uiNewScreen != MSG_BOX_SCREEN)
|
||||
// sevenfm: start/stop SSA
|
||||
if (uiNewScreen == GAME_SCREEN)
|
||||
{
|
||||
// check that no sound is playing currently
|
||||
if (guiCurrentSteadyStateSoundHandle == NO_SAMPLE)
|
||||
{
|
||||
SetSSA();
|
||||
}
|
||||
}
|
||||
else if (uiNewScreen != MSG_BOX_SCREEN)
|
||||
{
|
||||
// Stop SSA
|
||||
if (guiCurrentSteadyStateSoundHandle != NO_SAMPLE)
|
||||
{
|
||||
SoundStop(guiCurrentSteadyStateSoundHandle);
|
||||
guiCurrentSteadyStateSoundHandle = NO_SAMPLE;
|
||||
}
|
||||
// stop ambients
|
||||
StopFireAmbient();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user