Home
last modified time | relevance | path

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

/system/media/audio_utils/tests/
Dbalance_tests.cpp23 android::audio_utils::Balance balance(false /* ramp */); in TEST() local
24 ASSERT_EQ(false, balance.getRamp()); in TEST()
26 balance.setChannelMask(AUDIO_CHANNEL_OUT_STEREO); in TEST()
30 ASSERT_EQ(0.f, balance.getBalance()); in TEST()
31 balance.process(buffer.data(), 1 /* frames */); in TEST()
35 balance.setBalance(1.f); in TEST()
36 ASSERT_EQ(1.f, balance.getBalance()); in TEST()
37 balance.process(buffer.data(), 1 /* frames */); in TEST()
42 balance.setBalance(-1.f); // to left in TEST()
43 ASSERT_EQ(-1.f, balance.getBalance()); in TEST()
[all …]
/system/media/audio_utils/
DBalance.cpp34 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()
[all …]
DDoxyfile2244 # larger than 0 to get control over the balance between CPU load and processing
/system/media/audio_utils/include/audio_utils/
DBalance.h102 void setBalance(float balance);
136 void computeStereoBalance(float balance, float *left, float *right) const;
/system/chre/pal/doc/
DDoxyfile2141 # larger than 0 to get control over the balance between CPU load and processing
/system/chre/chre_api/doc/
DDoxyfile2141 # larger than 0 to get control over the balance between CPU load and processing