Use BackgroundMusicVolume (#892)

This commit is contained in:
McSchneidar authored and GitHub committed 2026-08-24 20:19:52 +02:00
1 parent ba5a361d42
commit 3a9ea3f67b
1 file changed
+7 -1
+7 -1
View File
@@ -183,6 +183,7 @@ namespace Vocaluxe.Base
_CurPlayer = _BGPlayer;
//Set a default to have a consistent starting point, use SetMusicSource afterwards
CSound.SetGlobalVolume(CConfig.BackgroundMusicVolume);
_MusicSource = EBackgroundMusicSource.TR_CONFIG_NO_OWN_MUSIC;
_AddBackgroundMusic();
@@ -209,6 +210,11 @@ namespace Vocaluxe.Base
return;
}
if (!IsPlayingPreview)
{
CSound.SetGlobalVolume(CConfig.BackgroundMusicVolume);
}
if (IsPlayingPreview || _BGPlayer.SoundLoaded)
{
_CurPlayer.Play();
@@ -535,4 +541,4 @@ namespace Vocaluxe.Base
return _BGMusicFiles.Contains(element);
}
}
}
}