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

Function getZoomVolumeModifier

src/OpenLoco/src/Audio/VehicleAudio.cpp:32–35  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

30 constexpr int32_t kPanFalloffEnd = 3072;
31
32 static int8_t getZoomVolumeModifier(uint8_t zoom)
33 {
34 return std::min<uint8_t>(zoom, 2) * kVolumeModifierZoomIncrement;
35 }
36
37 static bool isUnderground(const World::Pos3& pos)
38 {

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected