diff --git a/docs/010-editor-templates/adx.bt b/docs/010-editor-templates/adx.bt index 0510161f..814b3e6e 100644 --- a/docs/010-editor-templates/adx.bt +++ b/docs/010-editor-templates/adx.bt @@ -2,14 +2,16 @@ //--- 010 Editor v8.0 Binary Template // // File: adx.bt -// Authors: Alex Barney -// Version: 1.0 +// Authors: Alex Barney, Sewer56 +// Version: 1.0.1 // Purpose: Parse ADX audio files // Category: Audio // File Mask: *.adx // ID Bytes: 80 00 // History: // 1.0 Initial Release +// 1.0.1 Added some corrections to fields based off of reversing a CRI game. +// Fixed compatibility with later versions of 010 editor. //------------------------------------------------ int DivideByRoundUp(int value, int divisor) @@ -25,7 +27,7 @@ struct History struct Loop { - int16 LoopNum; + int16 Unused; int16 LoopType; int32 LoopStartSample; int32 LoopStartByte; @@ -78,8 +80,9 @@ struct Header break; int16 AlignmentSamples; - int16 LoopCount; - for(i = 0; i < LoopCount; i++) + int16 LoopEnabled; + + if (LoopEnabled == 1) { Loop loop ; } @@ -122,9 +125,9 @@ typedef struct (Header &head) char CopyrightMarker[6]; for(i = 0; i < frameCount; i++) { - Frame Frames(head.FrameSize, head.ChannelCount); + Frame Frames(); } -} Data ; +} Data; int SizeData( Data &d ) {