Ignore:
Timestamp:
May 8, 2021, 3:44:24 AM (4 years ago)
Author:
geyser
Message:

Fixed importing of "fact" chunk, as well as an unhandled fatal when attempting to transcode IMA4 to MS ADPCM. Also added missing padding to SNDD template and fixed the duration calculation for WAV-to-SNDD.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • OniSplit/Sound/AifExporter.cs

    r1131 r1156  
    3131        {
    3232            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!");
    3335
    3436            using (var stream = File.Create(Path.Combine(OutputDirPath, descriptor.FullName + ".aif")))
    3537            using (var writer = new BinaryWriter(stream))
    3638            {
    37                 if (!(sound.IsIMA4))
    38                 {
    39                     throw new NotSupportedException("Transcoding from MS ADPCM (PC) to IMA4 ADPCM (Mac) not supported!");
    40                 }
    4139                writer.Write(Utils.ByteSwap(fcc_FORM));
    4240                writer.Write(Utils.ByteSwap(50 + sound.Data.Length));
Note: See TracChangeset for help on using the changeset viewer.