MCPcopy Create free account
hub / github.com/OpenLoco/OpenLoco / getSoundObject

Function getSoundObject

src/OpenLoco/src/Audio/Audio.cpp:349–353  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

347 }
348
349 static const SoundObject* getSoundObject(SoundId id)
350 {
351 auto idx = (int32_t)id & ~0x8000;
352 return ObjectManager::get<SoundObject>(idx);
353 }
354
355 static Viewport* findBestViewportForSound(viewport_pos vpos)
356 {

Callers 3

getVolumeForSoundIdFunction · 0.85
shouldSoundLoopFunction · 0.85
getSoundBufferFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected