Make the sound engine less dumb about music. Fix the music player not knowing about already playing tracks.
This commit is contained in:
@@ -51,10 +51,10 @@ namespace OpenRA.Mods.RA
|
||||
{
|
||||
if (!Game.Settings.Game.ShellmapMusic ||
|
||||
Info.Music == null ||
|
||||
!Rules.Music[Info.Music].Exists)
|
||||
!Rules.Music.ContainsKey(Info.Music))
|
||||
return;
|
||||
|
||||
Sound.PlayMusicThen(Rules.Music[Info.Music].Filename, () => LoopMusic());
|
||||
Sound.PlayMusicThen(Rules.Music[Info.Music], () => LoopMusic());
|
||||
}
|
||||
|
||||
int ticks = 0;
|
||||
|
||||
@@ -35,7 +35,7 @@ namespace OpenRA.Mods.Cnc
|
||||
Scripting.Media.PlayFMVFullscreen(w, "gdi1.vqa",
|
||||
() => Scripting.Media.PlayFMVFullscreen(w, "landing.vqa", () =>
|
||||
{
|
||||
Sound.PlayMusic(Rules.Music["aoi"].Filename);
|
||||
Sound.PlayMusic(Rules.Music["aoi"]);
|
||||
started = true;
|
||||
}));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user