MCPcopy Create free account
hub / github.com/OpenTTD/OpenTTD / GetSound

Function GetSound

src/newgrf_sound.cpp:50–54  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

48
49
50SoundEntry *GetSound(SoundID index)
51{
52 if (index >= _sounds.size()) return nullptr;
53 return &_sounds[index];
54}
55
56
57uint GetNumSounds()

Callers 5

StartSoundFunction · 0.85
ChangeSoundSetFunction · 0.85
ImportGRFSoundFunction · 0.85
GRFSoundFunction · 0.85
SoundEffectChangeInfoFunction · 0.85

Calls 1

sizeMethod · 0.45

Tested by

no test coverage detected