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

Function shouldSoundLoop

src/OpenLoco/src/Audio/Audio.cpp:439–448  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

437 }
438
439 bool shouldSoundLoop(SoundId id)
440 {
441 if (!isObjectSoundId(id))
442 {
443 return false;
444 }
445
446 auto obj = getSoundObject(id);
447 return obj->shouldLoop != 0;
448 }
449
450 void playSound(SoundId id, ChannelId channel, const World::Pos3& loc, int32_t volume, int32_t frequency)
451 {

Callers 1

updateSingleVehicleSoundFunction · 0.85

Calls 2

isObjectSoundIdFunction · 0.85
getSoundObjectFunction · 0.85

Tested by

no test coverage detected