equal
deleted
inserted
replaced
14 char extmidi[80]; |
14 char extmidi[80]; |
15 } MusicFileSettings; |
15 } MusicFileSettings; |
16 |
16 |
17 VARDEF MusicFileSettings msf; |
17 VARDEF MusicFileSettings msf; |
18 |
18 |
|
19 typedef struct FileEntry { |
|
20 uint32 file_offset; |
|
21 uint32 file_size; |
|
22 uint16 rate; |
|
23 uint8 bits_per_sample; |
|
24 uint8 channels; |
|
25 uint8 volume; |
|
26 uint8 priority; |
|
27 } FileEntry; |
|
28 |
19 bool SoundInitialize(const char *filename); |
29 bool SoundInitialize(const char *filename); |
|
30 uint GetNumOriginalSounds(void); |
20 |
31 |
21 typedef enum SoundFx { |
32 typedef enum SoundFx { |
22 SND_02_SPLAT, // 0 == 0x00 ! |
33 SND_02_SPLAT, // 0 == 0x00 ! |
23 SND_03_FACTORY_WHISTLE, |
34 SND_03_FACTORY_WHISTLE, |
24 SND_04_TRAIN, |
35 SND_04_TRAIN, |
95 } SoundFx; |
106 } SoundFx; |
96 |
107 |
97 void SndPlayTileFx(SoundFx sound, TileIndex tile); |
108 void SndPlayTileFx(SoundFx sound, TileIndex tile); |
98 void SndPlayVehicleFx(SoundFx sound, const Vehicle *v); |
109 void SndPlayVehicleFx(SoundFx sound, const Vehicle *v); |
99 void SndPlayFx(SoundFx sound); |
110 void SndPlayFx(SoundFx sound); |
|
111 void SndCopyToPool(void); |
100 |
112 |
101 #endif /* SOUND_H */ |
113 #endif /* SOUND_H */ |