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

Function applyVolume

src/Audio/src/AudioEngine.cpp:76–79  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

74 }
75
76 static void applyVolume(AudioInstance& inst)
77 {
78 alSourcef(inst.sourceId, AL_GAIN, computeEffectiveGain(inst.attribs.volume, inst.channel));
79 }
80
81 static void applyPitch(AudioInstance& inst)
82 {

Callers 4

createFunction · 0.85
setVolumeFunction · 0.85
setAttributesFunction · 0.85
setChannelVolumeFunction · 0.85

Calls 1

computeEffectiveGainFunction · 0.85

Tested by

no test coverage detected