From 246ae0ef292246c7f9af65e7255370405aef0d6c Mon Sep 17 00:00:00 2001 From: Alexander Eckart Date: Fri, 18 May 2012 19:34:01 +0200 Subject: [PATCH] bugfix: start bg music at start if now own music is selected --- Vocaluxe/Screens/CScreenLoad.cs | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) diff --git a/Vocaluxe/Screens/CScreenLoad.cs b/Vocaluxe/Screens/CScreenLoad.cs index 91ecbba1..010c5578 100644 --- a/Vocaluxe/Screens/CScreenLoad.cs +++ b/Vocaluxe/Screens/CScreenLoad.cs @@ -142,6 +142,19 @@ namespace Vocaluxe.Screens _SongLoaderThread.IsBackground = true; _SongLoaderThread.Start(); _timer.Start(); + + if (CConfig.BackgroundMusic == EOffOn.TR_CONFIG_ON && + CConfig.BackgroundMusicSource == EBackgroundMusicSource.TR_CONFIG_NO_OWN_MUSIC && !_BGMusicStartet) + { + CBackgroundMusic.AddOwnMusic(); + + if (!CBackgroundMusic.Playing) + CBackgroundMusic.Next(); + + _BGMusicStartet = true; + } + + CBackgroundMusic.CanSing = false; } public override bool UpdateGame() @@ -179,8 +192,7 @@ namespace Vocaluxe.Screens _BGMusicStartet = true; } - CBackgroundMusic.CanSing = false; - + return true; }