Changeset 1156 for OniSplit/Sound/AifExporter.cs
- Timestamp:
- May 8, 2021, 3:44:24 AM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
OniSplit/Sound/AifExporter.cs
r1131 r1156 31 31 { 32 32 var sound = SoundData.Read(descriptor, do_pc_demo_test); 33 if (!(sound.IsIMA4)) 34 throw new NotSupportedException("Transcoding from MS ADPCM (PC) to IMA4 ADPCM (Mac) not supported!"); 33 35 34 36 using (var stream = File.Create(Path.Combine(OutputDirPath, descriptor.FullName + ".aif"))) 35 37 using (var writer = new BinaryWriter(stream)) 36 38 { 37 if (!(sound.IsIMA4))38 {39 throw new NotSupportedException("Transcoding from MS ADPCM (PC) to IMA4 ADPCM (Mac) not supported!");40 }41 39 writer.Write(Utils.ByteSwap(fcc_FORM)); 42 40 writer.Write(Utils.ByteSwap(50 + sound.Data.Length));
Note:
See TracChangeset
for help on using the changeset viewer.