Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/assaultcube/AC
/ gain
Method
gain
source/src/openal.cpp:133–138 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
131
}
132
133
bool source::gain(float g)
134
{
135
alclearerr();
136
alSourcef(id, AL_GAIN, g);
137
return !ALERRF(
"gain: %f"
, g);
138
}
139
140
bool source::pitch(float p)
141
{
Callers
4
updategain
Method · 0.80
updatepos
Method · 0.80
setvolume
Method · 0.80
updateloopsound
Method · 0.80
Calls
1
alclearerr
Function · 0.85
Tested by
no test coverage detected