Some checks for _CurrentStream (Darkice)

This commit is contained in:
Florian Küpper committed 2013-08-05 13:16:44 +02:00
1 parent 29c50b77af
commit 127f9edfdc
1 file changed
+4 -2
+4 -2
View File
@@ -546,12 +546,14 @@ namespace Vocaluxe.Screens
public override void ApplyVolume()
{
CSound.SetStreamVolumeMax(_CurrentStream, CConfig.GameMusicVolume);
if(_CurrentStream > -1)
CSound.SetStreamVolumeMax(_CurrentStream, CConfig.GameMusicVolume);
}
private void _CloseSong()
{
CSound.FadeAndStop(_CurrentStream, 0f, 0.5f);
if(_CurrentStream > -1)
CSound.FadeAndStop(_CurrentStream, 0f, 0.5f);
CSound.RecordStop();
if (_CurrentVideo != -1)
{