Refactor background music to fix some possible issues and smooth out transitions
This commit is contained in:
1 parent
cd4c010f99
commit
df82690cd0
16 files changed
+333
-389
No files matched your search
@@ -121,7 +121,7 @@ namespace VocaluxeLib.Menu.SongMenu
|
||||
else if (value >= CBase.Songs.GetNumCategories())
|
||||
{
|
||||
value = -1;
|
||||
CBase.BackgroundMusic.Stop();
|
||||
CBase.BackgroundMusic.SetPlayingPreview(false);
|
||||
}
|
||||
|
||||
_PreviewNrInternal = value;
|
||||
@@ -371,7 +371,7 @@ namespace VocaluxeLib.Menu.SongMenu
|
||||
return;
|
||||
|
||||
CBase.BackgroundMusic.StopPreview();
|
||||
|
||||
CBase.Sound.SetGlobalVolume(CBase.Config.GetMusicVolume(EMusicType.Background));
|
||||
if (playBGagain)
|
||||
CBase.BackgroundMusic.Play();
|
||||
|
||||
|
||||
Reference in new issue
Block a user