Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 10 additions & 7 deletions docs/010-editor-templates/adx.bt
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand All @@ -25,7 +27,7 @@ struct History

struct Loop
{
int16 LoopNum;
int16 Unused;
int16 LoopType;
int32 LoopStartSample;
int32 LoopStartByte;
Expand Down Expand Up @@ -78,8 +80,9 @@ struct Header
break;

int16 AlignmentSamples;
int16 LoopCount;
for(i = 0; i < LoopCount; i++)
int16 LoopEnabled;

if (LoopEnabled == 1)
{
Loop loop <open=true>;
}
Expand Down Expand Up @@ -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 <size=SizeData>;
} Data;

int SizeData( Data &d )
{
Expand Down