• Home
  • Raw
  • Download

Lines Matching refs:balance

23   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()
44 balance.process(buffer.data(), 1 /* frames */); in TEST()
50 android::audio_utils::Balance balance(false /* ramp */);
51 ASSERT_EQ(false, balance.getRamp());
53 balance.setChannelMask(AUDIO_CHANNEL_OUT_7POINT1);
58 ASSERT_EQ(0.f, balance.getBalance());
59 balance.process(buffer.data(), 1 /* frames */);
63 balance.setBalance(1.f);
64 balance.process(buffer.data(), 1 /* frames */);
69 balance.setBalance(-1.f); // to left
70 ASSERT_EQ(-1.f, balance.getBalance());
71 balance.process(buffer.data(), 1 /* frames */);
77 android::audio_utils::Balance balance(false /* ramp */); in TEST() local
78 ASSERT_EQ(false, balance.getRamp()); in TEST()
88 balance.setChannelMask((audio_channel_mask_t)channelMask); in TEST()
91 balance.setBalance(0.f); in TEST()
92 balance.process(buffer.data(), 1 /* frames */); in TEST()
96 balance.setBalance(1.f); in TEST()
97 balance.process(buffer.data(), 1 /* frames */); in TEST()
101 balance.setBalance(-1.f); in TEST()
102 balance.process(buffer.data(), 1 /* frames */); in TEST()
107 balance.setChannelMask((audio_channel_mask_t) in TEST()
110 balance.setBalance(0.f); // to left in TEST()
111 balance.process(buffer.data(), 1 /* frames */); in TEST()
115 balance.setBalance(1.f); in TEST()
116 balance.process(buffer.data(), 1 /* frames */); in TEST()
121 balance.setBalance(-1.f); // to left in TEST()
122 balance.process(buffer.data(), 1 /* frames */); in TEST()