audio_buffer_queue_unittest.cc | 324 scoped_ptr<AudioBus> bus1 = AudioBus::Create(channels, frames); local 326 EXPECT_EQ(frames, buffer.PeekFrames(60, 0, 0, bus1.get())); 327 EXPECT_EQ(30, buffer.PeekFrames(30, 0, 0, bus1.get())); 329 VerifyBus(bus1.get(), 0, 30, bus1->frames(), 0, 1); 337 bus1->Zero(); 338 EXPECT_EQ(5, buffer.PeekFrames(5, 10, 0, bus1.get())); 339 VerifyBus(bus1.get(), 0, 5, bus1->frames(), 40, 1); 343 EXPECT_EQ(30, buffer.PeekFrames(60, 0, 0, bus1.get())) [all...] |