| # | 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)); | |
| – | Removed lines |
| + | Added lines |
| < | Changed lines (old) |
| > | Changed lines (new) |