MCPcopy Create free account
hub / github.com/cinder/Cinder / setMasterGain

Method setMasterGain

samples/FallingGears/src/AudioController.cpp:69–73  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

67}
68
69void AudioController::setMasterGain( float gainDb )
70{
71 float gainLinear = audio::decibelToLinear( gainDb );
72 mMasterGain->getParam()->applyRamp( gainLinear, 0.3f );
73}
74
75float AudioController::getMasterGain() const
76{

Callers 2

setupMethod · 0.80
updateMethod · 0.80

Calls 2

decibelToLinearFunction · 0.85
applyRampMethod · 0.80

Tested by

no test coverage detected