Fix #17230: Dummy audio output class

This commit is contained in:
Abdurrahmaan Iqbal
2019-10-17 23:13:17 +01:00
committed by abcdefg30
parent 70b1df6ce7
commit 72eb4e1749
6 changed files with 91 additions and 2 deletions

View File

@@ -104,7 +104,7 @@ namespace OpenRA.Mods.Common.Widgets
if (!stopped && !paused)
{
var nextFrame = 0;
if (video.HasAudio)
if (video.HasAudio && !Game.Sound.DummyEngine)
nextFrame = (int)float2.Lerp(0, video.Frames, Game.Sound.VideoSeekPosition * invLength);
else
nextFrame = video.CurrentFrame + 1;