removing some duplication

This commit is contained in:
Chris Forbes
2010-12-27 21:03:51 +13:00
parent e127095437
commit 1c4f4b7886

View File

@@ -28,8 +28,7 @@ namespace OpenRA
static ISoundSource LoadSound(string filename)
{
var data = AudLoader.LoadSound(FileSystem.Open(filename));
return soundEngine.AddSoundSourceFromMemory(data, 1, 16, 22050);
return LoadSoundRaw(AudLoader.LoadSound(FileSystem.Open(filename)));
}
static ISoundSource LoadSoundRaw(byte[] rawData)