Rename another Stream.Write(byte[]) extension method.

This commit is contained in:
Paul Chote
2018-03-07 20:27:22 +00:00
committed by abcdefg30
parent fadcfa0828
commit e69cf4fd5c
4 changed files with 39 additions and 44 deletions

View File

@@ -194,14 +194,14 @@ namespace OpenRA.Mods.Common.FileFormats
else if (audioChannels == 1)
{
var rawAudio = stream.ReadBytes((int)length);
audio1.Write(rawAudio);
audio1.WriteArray(rawAudio);
}
else
{
var rawAudio = stream.ReadBytes((int)length / 2);
audio1.Write(rawAudio);
audio1.WriteArray(rawAudio);
rawAudio = stream.ReadBytes((int)length / 2);
audio2.Write(rawAudio);
audio2.WriteArray(rawAudio);
if (length % 2 != 0)
stream.ReadBytes(2);
}