Skip video for CSettings.BackgroundMusicFadeTime when calling Pause() to prevent asynchronous video and sound
This commit is contained in:
1 parent
b566f91e92
commit
3c38079d66
1 file changed
+3
@@ -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;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user