Lines Matching refs:balance
33 const float balance = mBalance; in setChannelMask() local
47 setBalance(balance); // recompute balance in setChannelMask()
92 setBalance(balance); // recompute balance in setChannelMask()
139 void Balance::computeStereoBalance(float balance, float *left, float *right) const in computeStereoBalance() argument
141 if (balance > 0.f) { in computeStereoBalance()
142 *left = mCurve(1.f - balance); in computeStereoBalance()
144 } else if (balance < 0.f) { in computeStereoBalance()
146 *right = mCurve(1.f + balance); in computeStereoBalance()
168 void Balance::setBalance(float balance) in setBalance() argument
170 if (mBalance == balance // no change in setBalance()
171 || isnan(balance) || fabs(balance) > 1.f) { // balance out of range in setBalance()
175 mBalance = balance; in setBalance()
186 computeStereoBalance(balance, &mVolumes[0], &mVolumes[1]); in setBalance()
193 computeStereoBalance(balance, &balanceVolumes[0], &balanceVolumes[1]); in setBalance()