MCPcopy 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
133bool source::gain(float g)
134{
135 alclearerr();
136 alSourcef(id, AL_GAIN, g);
137 return !ALERRF("gain: %f", g);
138}
139
140bool source::pitch(float p)
141{

Callers 4

updategainMethod · 0.80
updateposMethod · 0.80
setvolumeMethod · 0.80
updateloopsoundMethod · 0.80

Calls 1

alclearerrFunction · 0.85

Tested by

no test coverage detected