Backgroundmusic can now be controlled by media keys

This commit is contained in:
Stephan Sundermann committed 2012-12-08 00:36:17 +01:00
1 parent 579588c434
commit 274ee2bffa
1 file changed
+12
+12
View File
@@ -928,6 +928,18 @@ namespace Vocaluxe.Menu
CConfig.BackgroundMusicVolume = 0;
CConfig.SaveConfig();
}
else if (KeyEvent.Key == Keys.MediaNextTrack)
CBackgroundMusic.Next();
else if (KeyEvent.Key == Keys.MediaPreviousTrack)
CBackgroundMusic.Previous();
else if (KeyEvent.Key == Keys.MediaPlayPause)
{
if (CBackgroundMusic.Playing)
CBackgroundMusic.Pause();
else
CBackgroundMusic.Play();
}
CBackgroundMusic.ApplyVolume();
}