This compression is actually not yet supported.
This commit is contained in:
committed by
Paul Chote
parent
b4c483ce1a
commit
04cda69ef9
@@ -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)
|
||||||
|
|||||||
@@ -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 = () =>
|
||||||
|
|||||||
Reference in New Issue
Block a user