(svn r16340) -Codechange: introduce SoundID (uint16) and use that instead of SoundFX, which was used as a byte and uint16 at different places, when the uint16 sound ID is meant.
This commit is contained in:
@@ -23,9 +23,9 @@ enum VehicleSoundEvent {
|
||||
|
||||
FileEntry *AllocateFileEntry();
|
||||
void InitializeSoundPool();
|
||||
FileEntry *GetSound(uint index);
|
||||
FileEntry *GetSound(SoundID sound_id);
|
||||
uint GetNumSounds();
|
||||
bool PlayVehicleSound(const Vehicle *v, VehicleSoundEvent event);
|
||||
bool PlayTileSound(const struct GRFFile *file, uint16 sound_id, TileIndex tile);
|
||||
bool PlayTileSound(const struct GRFFile *file, SoundID sound_id, TileIndex tile);
|
||||
|
||||
#endif /* NEWGRF_SOUND_H */
|
||||
|
Reference in New Issue
Block a user