32void InitializeSoundPool();
VisualEffect
Meaning of the various bits of the visual effect.
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.
SoundEntry * AllocateSound(uint num)
Allocate sound slots.
bool LoadNewGRFSound(SoundEntry &sound, SoundID sound_id)
Extract meta data from a NewGRF sound.
size_t GetSoundPoolAllocatedMemory()
Get size of memory allocated to sound effects.
VehicleSoundEvent
Events at which a sound might be played.
@ Breakdown
Vehicle breaking down.
@ Stopped16
Every 16 ticks while the vehicle is stopped (speed == 0).
@ Running16
Every 16 ticks while the vehicle is running (speed > 0).
@ Touchdown
Whenever a plane touches down.
@ Running
Vehicle running normally.
@ Start
Vehicle starting, i.e. leaving, the station.
@ Tunnel
Train entering a tunnel.
@ LoadUnload
Whenever cargo payment is made for a vehicle.
bool PlayVehicleSound(const Vehicle *v, VehicleSoundEvent event, bool force=false)
Checks whether a NewGRF wants to play a different vehicle sound effect.
Dynamic data of a loaded NewGRF.
StrongType::Typedef< uint32_t, struct TileIndexTag, StrongType::Compare, StrongType::Integer, StrongType::Compatible< int32_t >, StrongType::Compatible< int64_t > > TileIndex
The index/ID of a Tile.
Types related to vehicles.