Home
last modified time | relevance | path

Searched refs:balanceVolumes (Results 1 – 1 of 1) sorted by relevance

/system/media/audio_utils/
DBalance.cpp174 float balanceVolumes[3]; // left, right, center (we don't care the order) in setBalance() local
176 && AUDIO_GEOMETRY_SIDE_LEFT <= std::size(balanceVolumes)); in setBalance()
178 && AUDIO_GEOMETRY_SIDE_RIGHT <= std::size(balanceVolumes)); in setBalance()
180 && AUDIO_GEOMETRY_SIDE_CENTER <= std::size(balanceVolumes)); in setBalance()
181 computeStereoBalance(balance, &balanceVolumes[AUDIO_GEOMETRY_SIDE_LEFT], in setBalance()
182 &balanceVolumes[AUDIO_GEOMETRY_SIDE_RIGHT]); in setBalance()
183 balanceVolumes[AUDIO_GEOMETRY_SIDE_CENTER] = 1.f; // center TODO: consider center scaling. in setBalance()
186 mVolumes[i] = balanceVolumes[mSides[i]]; in setBalance()