12 #ifndef NEWGRF_SOUND_H 13 #define NEWGRF_SOUND_H 34 void InitializeSoundPool();
Vehicle running normally.
void PlayTileSound(const GRFFile *file, SoundID sound_id, TileIndex tile)
Play a NewGRF sound effect at the location of a specific tile.
SoundID GetNewGRFSoundID(const GRFFile *file, SoundID sound_id)
Resolve NewGRF sound ID.
Vehicle starting, i.e. leaving, the station.
Every 16 ticks while the vehicle is running (speed > 0).
SoundEntry * AllocateSound(uint num)
Allocate sound slots.
Every 16 ticks while the vehicle is stopped (speed == 0).
Whenever cargo payment is made for a vehicle.
uint32 TileIndex
The index/ID of a Tile.
bool LoadNewGRFSound(SoundEntry *sound)
Extract meta data from a NewGRF sound.
bool PlayVehicleSound(const Vehicle *v, VehicleSoundEvent event)
Checks whether a NewGRF wants to play a different vehicle sound effect.
Types related to vehicles.
VehicleSoundEvent
Events at which a sound might be played.
Whenever a plane touches down.
Dynamic data of a loaded NewGRF.
Vehicle visual effect (steam, diesel smoke or electric spark) is shown.