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