equal
deleted
inserted
replaced
1 /* $Id$ */ |
1 /* $Id$ */ |
2 |
2 |
3 #ifndef NEWGRF_SOUND_H |
3 #ifndef NEWGRF_SOUND_H |
4 #define NEWGRF_SOUND_H |
4 #define NEWGRF_SOUND_H |
5 |
5 |
6 typedef enum VehicleSoundEvents { |
6 enum VehicleSoundEvent { |
7 VSE_START = 1, |
7 VSE_START = 1, |
8 VSE_TUNNEL = 2, |
8 VSE_TUNNEL = 2, |
9 VSE_BREAKDOWN = 3, |
9 VSE_BREAKDOWN = 3, |
10 VSE_RUNNING = 4, |
10 VSE_RUNNING = 4, |
11 VSE_TOUCHDOWN = 5, |
11 VSE_TOUCHDOWN = 5, |
12 VSE_TRAIN_EFFECT = 6, |
12 VSE_TRAIN_EFFECT = 6, |
13 VSE_RUNNING_16 = 7, |
13 VSE_RUNNING_16 = 7, |
14 VSE_STOPPED_16 = 8, |
14 VSE_STOPPED_16 = 8, |
15 VSE_LOAD_UNLOAD = 9, |
15 VSE_LOAD_UNLOAD = 9, |
16 } VehicleSoundEvent; |
16 }; |
17 |
17 |
18 |
18 |
19 FileEntry *AllocateFileEntry(void); |
19 FileEntry *AllocateFileEntry(); |
20 void InitializeSoundPool(void); |
20 void InitializeSoundPool(); |
21 FileEntry *GetSound(uint index); |
21 FileEntry *GetSound(uint index); |
22 uint GetNumSounds(void); |
22 uint GetNumSounds(); |
23 bool PlayVehicleSound(const Vehicle *v, VehicleSoundEvent event); |
23 bool PlayVehicleSound(const Vehicle *v, VehicleSoundEvent event); |
24 |
24 |
25 #endif /* NEWGRF_SOUND_H */ |
25 #endif /* NEWGRF_SOUND_H */ |