--- OniSplit/Sound/AifExporter.cs 2020/05/30 12:08:12 1131 +++ OniSplit/Sound/AifExporter.cs 2021/05/08 01:44:24 1156 @@ -30,14 +30,12 @@ namespace Oni.Sound protected override void ExportInstance(InstanceDescriptor descriptor) { var sound = SoundData.Read(descriptor, do_pc_demo_test); + if (!(sound.IsIMA4)) + throw new NotSupportedException("Transcoding from MS ADPCM (PC) to IMA4 ADPCM (Mac) not supported!"); using (var stream = File.Create(Path.Combine(OutputDirPath, descriptor.FullName + ".aif"))) using (var writer = new BinaryWriter(stream)) { - if (!(sound.IsIMA4)) - { - throw new NotSupportedException("Transcoding from MS ADPCM (PC) to IMA4 ADPCM (Mac) not supported!"); - } writer.Write(Utils.ByteSwap(fcc_FORM)); writer.Write(Utils.ByteSwap(50 + sound.Data.Length)); writer.Write(Utils.ByteSwap(fcc_AIFC));