Lines Matching refs:balance
34 const float balance = mBalance; in setChannelMask() local
48 setBalance(balance); // recompute balance in setChannelMask()
73 setBalance(balance); // recompute balance in setChannelMask()
120 void Balance::computeStereoBalance(float balance, float *left, float *right) const in computeStereoBalance() argument
122 if (balance > 0.f) { in computeStereoBalance()
123 *left = mCurve(1.f - balance); in computeStereoBalance()
125 } else if (balance < 0.f) { in computeStereoBalance()
127 *right = mCurve(1.f + balance); in computeStereoBalance()
149 void Balance::setBalance(float balance) in setBalance() argument
152 if (mBalance == balance // no change in setBalance()
153 || isnan(balance) || fabs(balance) > 1.f) { // balance out of range in setBalance()
157 mBalance = balance; in setBalance()
168 computeStereoBalance(balance, &mVolumes[0], &mVolumes[1]); in setBalance()
181 computeStereoBalance(balance, &balanceVolumes[AUDIO_GEOMETRY_SIDE_LEFT], in setBalance()