ViewVC Help
View File | Revision Log | View Changeset | Root Listing
root/Oni2/OniSplit/Sound/AifExporter.cs
(Generate patch)

Comparing OniSplit/Sound/AifExporter.cs (file contents):
Revision 1114 by iritscen, Wed Jan 22 14:08:57 2020 UTC vs.
Revision 1130 by geyser, Thu May 28 21:28:44 2020 UTC

# Line 31 | Line 31 | namespace Oni.Sound
31              using (var stream = File.Create(Path.Combine(OutputDirPath, descriptor.FullName + ".aif")))
32              using (var writer = new BinaryWriter(stream))
33              {
34 +                if (!(sound.IsIMA4))
35 +                {
36 +                    throw new NotSupportedException("Transcoding from PC ADPCM to Mac/demo ADPCM not supported!");
37 +                }
38                  writer.Write(Utils.ByteSwap(fcc_FORM));
39                  writer.Write(Utils.ByteSwap(50 + sound.Data.Length));
40                  writer.Write(Utils.ByteSwap(fcc_AIFC));

Diff Legend

Removed lines
+ Added lines
< Changed lines (old)
> Changed lines (new)