Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
create
Function · 0.85
setVolume
Function · 0.85
setAttributes
Function · 0.85
setChannelVolume
Function · 0.85
Calls
1
computeEffectiveGain
Function · 0.85
Tested by
no test coverage detected