ERIS CORE

◆ gain()

void AudioMixer8::gain ( unsigned int  channel,
float  gain 
)
inlineinherited

Definition at line 13 of file eris_mixer_ext.h.

13  {
14  if (channel >= 8) return;
15  if (gain > 32767.0f) gain = 32767.0f;
16  else if (gain < -32767.0f) gain = -32767.0f;
17  multiplier[channel] = gain * 65536.0f; // TODO: proper roundoff?
18  }
int32_t multiplier[8]
void gain(unsigned int channel, float gain)

References AudioMixer8::multiplier.

Referenced by SvcErisAudioParameterController::messageHandler().

+ Here is the caller graph for this function: