Lines Matching refs:audio_bus
12 #include "media/base/audio_bus.h"
28 scoped_ptr<AudioBus> audio_bus = AudioBus::Create(params);
29 source.OnMoreData(audio_bus.get(), AudioBuffersState());
36 EXPECT_NEAR(0, audio_bus->channel(0)[0],
38 EXPECT_FLOAT_EQ(0.15643446f, audio_bus->channel(0)[1]);
39 EXPECT_LT(audio_bus->channel(0)[1], audio_bus->channel(0)[2]);
40 EXPECT_LT(audio_bus->channel(0)[2], audio_bus->channel(0)[3]);
42 EXPECT_NEAR(0, audio_bus->channel(0)[half_period],
44 EXPECT_FLOAT_EQ(-0.15643446f, audio_bus->channel(0)[half_period + 1]);
45 EXPECT_GT(audio_bus->channel(0)[half_period + 1],
46 audio_bus->channel(0)[half_period + 2]);
47 EXPECT_GT(audio_bus->channel(0)[half_period + 2],
48 audio_bus->channel(0)[half_period + 3]);
57 scoped_ptr<AudioBus> audio_bus = AudioBus::Create(1, 2 * kSampleCap);
59 audio_bus.get(), AudioBuffersState()), kSampleCap);
61 EXPECT_EQ(source.OnMoreData(audio_bus.get(), AudioBuffersState()), 0);
65 audio_bus.get(), AudioBuffersState()), kSampleCap);