removing some duplication
This commit is contained in:
@@ -28,8 +28,7 @@ namespace OpenRA
|
|||||||
|
|
||||||
static ISoundSource LoadSound(string filename)
|
static ISoundSource LoadSound(string filename)
|
||||||
{
|
{
|
||||||
var data = AudLoader.LoadSound(FileSystem.Open(filename));
|
return LoadSoundRaw(AudLoader.LoadSound(FileSystem.Open(filename)));
|
||||||
return soundEngine.AddSoundSourceFromMemory(data, 1, 16, 22050);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
static ISoundSource LoadSoundRaw(byte[] rawData)
|
static ISoundSource LoadSoundRaw(byte[] rawData)
|
||||||
|
|||||||
Reference in New Issue
Block a user