29 #define STEP_SIZE_TABLE_ENTRIES 89
30 #define INDEX_TABLE_ENTRIES 16
44 #define SND_LEVEL_1 13 // 13% (12.5)
45 #define SND_LEVEL_2 25 // 25%
46 #define SND_LEVEL_3 38 // 38% (37.5)
47 #define SND_LEVEL_4 50 // 50%
48 #define SND_LEVEL_5 63 // 63% (62.5)
49 #define SND_LEVEL_6 75 // 75%
50 #define SND_LEVEL_7 88 // 88% (87.5)
52 #define TONE_LEVEL_1 8 // 8%
53 #define TONE_LEVEL_2 16 // 16%
54 #define TONE_LEVEL_3 24 // 24%
55 #define TONE_LEVEL_4 32 // 32%
56 #define TONE_LEVEL_5 40 // 40%
57 #define TONE_LEVEL_6 48 // 48%
58 #define TONE_LEVEL_7 56 // 56%
59 #define TONE_LEVEL_8 64 // 64%
60 #define TONE_LEVEL_9 72 // 72%
61 #define TONE_LEVEL_10 80 // 80%
62 #define TONE_LEVEL_11 88 // 88%
63 #define TONE_LEVEL_12 96 // 96%
68 const SWORD StepSizeTable[
STEP_SIZE_TABLE_ENTRIES] = { 7, 8, 9, 10, 11, 12, 13, 14, 16, 17,
69 19, 21, 23, 25, 28, 31, 34, 37, 41, 45,
70 50, 55, 60, 66, 73, 80, 88, 97, 107, 118,
71 130, 143, 157, 173, 190, 209, 230, 253, 279, 307,
72 337, 371, 408, 449, 494, 544, 598, 658, 724, 796,
73 876, 963, 1060, 1166, 1282, 1411, 1552, 1707, 1878, 2066,
74 2272, 2499, 2749, 3024, 3327, 3660, 4026, 4428, 4871, 5358,
75 5894, 6484, 7132, 7845, 8630, 9493, 10442, 11487, 12635, 13899,
76 15289, 16818, 18500, 20350, 22385, 24623, 27086, 29794, 32767
80 -1, -1, -1, -1, 2, 4, 6, 8,
81 -1, -1, -1, -1, 2, 4, 6, 8
101 #define FILEFORMAT_RAW_SOUND 0x0100
102 #define FILEFORMAT_ADPCM_SOUND 0x0101
103 #define SOUND_MODE_ONCE 0x00
104 #define SOUND_LOOP 0x01
105 #define SOUND_ADPCM_INIT_VALPREV 0x7F
106 #define SOUND_ADPCM_INIT_INDEX 20
131 char PathBuffer[MAX_FILENAME_SIZE];
132 struct stat FileStatus;
137 #if (HARDWARE == SIMULATION)
139 #define SoundInstance (*gSoundInstance)
SOUND_GLOBALS * getSoundInstance()
RESULT cSoundUpdate(void)
const SWORD StepSizeTable[STEP_SIZE_TABLE_ENTRIES]
#define INDEX_TABLE_ENTRIES
#define SOUND_FILE_BUFFER_SIZE
void setSoundInstance(SOUND_GLOBALS *_Instance)
unsigned char UBYTE
Basic Type used to symbolise 8 bit unsigned values.
unsigned short UWORD
Basic Type used to symbolise 16 bit unsigned values.
void cSoundTest(void)
opSOUND_TEST byte code
signed short SWORD
Basic Type used to symbolise 16 bit signed values.
SOUND_GLOBALS * gSoundInstance
const SWORD IndexTable[INDEX_TABLE_ENTRIES]
#define STEP_SIZE_TABLE_ENTRIES
SBYTE DATA8
VM Type for 1 byte signed value.
void cSoundEntry(void)
opSOUND byte code
int SoundDriverDescriptor
void cSoundReady(void)
opSOUND_READY byte code