Lines Matching refs:gain
65 BContinuousParameter *gain = NULL;
70 // assume the mute preceeding master gain control
75 gain = dynamic_cast<BContinuousParameter *>(parameter);
80 if (gain == NULL) {
81 fprintf(stderr, "%s: could not found master gain!\n", sProgramName);
106 gain->GetValue(&volume, &size, &when);
113 if (muted == 0 || volume <= gain->MinValue())
119 if (volume <= gain->MinValue())
142 if (volume > gain->MaxValue())
143 volume = gain->MaxValue();
144 else if (volume < gain->MinValue())
145 volume = gain->MinValue();
147 gain->SetValue(&volume, sizeof(volume), system_time());
152 gain->GetValue(&volume, &size, &when);
154 printf("Current volume: %g (min = %g, max = %g)\n", volume, gain->MinValue(), gain->MaxValue());