Skip video for CSettings.BackgroundMusicFadeTime when calling Pause() to prevent asynchronous video and sound

This commit is contained in:
Stephan Sundermann committed 2012-03-10 14:08:19 +01:00
1 parent b566f91e92
commit 3c38079d66
1 file changed
+3
+3
View File
@@ -93,7 +93,10 @@ namespace Vocaluxe.Base
public static void Pause()
{
if (_VideoEnabled && _Video != -1)
{
CVideo.VdPause(_Video);
CVideo.VdSkip(_Video, CSound.GetPosition(_CurrentMusicStream) + CSettings.BackgroundMusicFadeTime, _CurrentPlaylistElement.GetVideoGap());
}
CSound.FadeAndPause(_CurrentMusicStream, 0f, CSettings.BackgroundMusicFadeTime);
_Playing = false;
}