-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsphinx_eurocom_ima.bt
More file actions
29 lines (25 loc) · 969 Bytes
/
sphinx_eurocom_ima.bt
File metadata and controls
29 lines (25 loc) · 969 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
//------------------------------------------------
//--- 010 Editor v12.0.1 Binary Template
//
// File: EurocomIMA.bt
// Authors: jmarti856 and Swyter
// Version: 1.1
// Purpose: View the structure of Eurocom custom IMA ADPCM blocks.
// Category: Audio
// File Mask: *.ima
// ID Bytes:
// History:
// 1.1 - Renamed fields and identified block_id as A-Z debug/block marker.
//------------------------------------------------
typedef struct
{
int16 predictor; // Initial PCM predictor for this block
uint8 step_index; // IMA ADPCM step table index
char block_id; // Usually ASCII A-Z, probably debug/block marker
struct PackedSampleByte
{
uint8 high_nibble : 4; // First ADPCM nibble decoded
uint8 low_nibble : 4; // Second ADPCM nibble decoded
} samples[28]; // 28 bytes = 56 ADPCM nibbles/samples
} EurocomImaBlock;
EurocomImaBlock blocks[FileSize() / sizeof(EurocomImaBlock)];