This compression is actually not yet supported.

This commit is contained in:
Matthias Mailänder
2020-12-19 11:03:07 +01:00
committed by Paul Chote
parent b4c483ce1a
commit 04cda69ef9
2 changed files with 4 additions and 1 deletions

View File

@@ -24,7 +24,7 @@ namespace OpenRA.Mods.Cnc.AudioLoaders
var readFormat = s.ReadByte(); var readFormat = s.ReadByte();
s.Position = start; s.Position = start;
return Enum.IsDefined(typeof(SoundFormat), readFormat); return readFormat == (int)SoundFormat.ImaAdpcm;
} }
bool ISoundLoader.TryParseSound(Stream stream, out ISoundFormat sound) bool ISoundLoader.TryParseSound(Stream stream, out ISoundFormat sound)

View File

@@ -66,6 +66,9 @@ namespace OpenRA.Mods.Cnc.FileFormats
if (!Enum.IsDefined(typeof(SoundFormat), readFormat)) if (!Enum.IsDefined(typeof(SoundFormat), readFormat))
return false; return false;
if (readFormat == (int)SoundFormat.WestwoodCompressed)
throw new NotImplementedException();
var offsetPosition = s.Position; var offsetPosition = s.Position;
result = () => result = () =>