src/newgrf_sound.h
changeset 5726 8f399788f6c9
parent 4656 acffecd6f484
child 6298 c30fe89622df
child 6573 7624f942237f
equal deleted inserted replaced
5725:8ad0e96437e0 5726:8f399788f6c9
       
     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 */