-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsphinx_eurosound_sif_file.bt
49 lines (44 loc) · 1.37 KB
/
sphinx_eurosound_sif_file.bt
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
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
//------------------------------------------------
//--- 010 Editor v11.0.1 Binary Template
//
// File: SphinxMusics.bt
// Authors: jmarti856
// Version: 1.0
// Purpose: Parse Temporal SIF files.
// Category: Audio
// File Mask: *.sif
// ID Bytes:
// History:
//------------------------------------------------
//*===============================================================================================
//* Typedefs for the sfx file
//*===============================================================================================
typedef char Padding[2];
//*===============================================================================================
//* DEFINE STRUCTS USED IN THE SFX FILE
//*===============================================================================================
//The first parameters of the header ara always little endian
LittleEndian();
typedef struct
{
uint Flags;
uint Address<format=hex>;
uint AudioDataSize<format=hex>;
uint Frequency;
uint RealSize<format=hex>;
uint NumChannels;
uint Bits;
uint PSI;
uint LoopOffset;
uint Duration;
} SampleInfo;
//Get the number of stored samples in this section
local int totalSamples = ReadUInt(FTell());
FSkip(sizeof(UINT));
//Read samples params
local int index = 0;
for (index = 0; index < totalSamples; index++)
{
SetBackColor(cLtGreen);
SampleInfo sampleInfoParams;
}