Fix sound after mod switching.

This commit is contained in:
Paul Chote
2011-01-22 17:56:38 +13:00
parent aa319ee403
commit a3f26cec46
2 changed files with 9 additions and 3 deletions

View File

@@ -36,9 +36,13 @@ namespace OpenRA
return soundEngine.AddSoundSourceFromMemory(rawData, 1, 16, 22050);
}
public static void Initialize()
public static void Create()
{
soundEngine = new OpenAlSoundEngine();
}
public static void Initialize()
{
sounds = new Cache<string, ISoundSource>(LoadSound);
music = null;
currentMusic = null;