From 1c4f4b7886b2f26d18f9ee323f53a3eb1f25958f Mon Sep 17 00:00:00 2001 From: Chris Forbes Date: Mon, 27 Dec 2010 21:03:51 +1300 Subject: [PATCH] removing some duplication --- OpenRA.Game/Sound.cs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/OpenRA.Game/Sound.cs b/OpenRA.Game/Sound.cs index 6eb0cc1994..d73f2a47be 100644 --- a/OpenRA.Game/Sound.cs +++ b/OpenRA.Game/Sound.cs @@ -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)