Make lower-level Sound not require the server state directly

This commit is contained in:
Pavel Penev
2015-08-24 01:15:25 +03:00
parent 1d3cfcf378
commit 49e9ad2c7c
2 changed files with 2 additions and 3 deletions

View File

@@ -66,9 +66,8 @@ namespace OpenRA
return soundEngine.AddSoundSourceFromMemory(rawData, channels, sampleBits, sampleRate);
}
public static void Initialize(SoundSettings soundSettings, ServerSettings serverSettings)
public static void Initialize(string engineName)
{
var engineName = serverSettings.Dedicated ? "Null" : soundSettings.Engine;
var enginePath = Platform.ResolvePath(".", "OpenRA.Platforms." + engineName + ".dll");
soundEngine = CreateDevice(Assembly.LoadFile(enginePath));