Stop video soundtrack when video stops

This commit is contained in:
Paul Chote
2010-08-12 00:44:53 +12:00
parent 6e0158039a
commit 74500c369c
2 changed files with 12 additions and 4 deletions

View File

@@ -68,13 +68,13 @@ namespace OpenRA.Widgets
video.Reset();
videoSprite.sheet.Texture.SetData(video.FrameData);
sw.Reset();
Sound.PlayRaw(video.AudioData);
Sound.PlayVideoSoundtrack(video.AudioData);
}
public void Stop()
{
playing = false;
// TODO: Stop audio
Sound.StopVideoSoundtrack();
}
}
}