Searched refs:frames_to_consume (Results 1 - 7 of 7) sorted by relevance

/external/chromium_org/media/base/
H A Daudio_pull_fifo_unittest.cc47 void ConsumeTest(int frames_to_consume) { argument
49 SCOPED_TRACE(base::StringPrintf("Checking frames_to_consume %d",
50 frames_to_consume));
51 pull_fifo_.Consume(audio_bus_.get(), frames_to_consume);
53 VerifyValue(audio_bus_->channel(j), frames_to_consume, start_value);
55 start_value += frames_to_consume;
90 // Test common |frames_to_consume| values which will be used as input
H A Daudio_fifo.cc89 int frames_to_consume) {
94 CHECK_LE(frames_to_consume, frames());
98 CHECK_LE(frames_to_consume + start_frame, destination->frames());
104 GetSizes(read_pos_, max_frames(), frames_to_consume,
122 frames_consumed_ += frames_to_consume;
123 read_pos_ = UpdatePos(read_pos_, frames_to_consume, max_frames());
87 Consume(AudioBus* destination, int start_frame, int frames_to_consume) argument
H A Daudio_fifo.h28 // Consumes |frames_to_consume| audio frames from the FIFO and copies
30 // Consume() will crash if the FIFO does not contain |frames_to_consume|
33 void Consume(AudioBus* destination, int start_frame, int frames_to_consume);
H A Daudio_pull_fifo.cc21 void AudioPullFifo::Consume(AudioBus* destination, int frames_to_consume) { argument
22 DCHECK_LE(frames_to_consume, destination->frames());
24 int remaining_frames_to_provide = frames_to_consume;
H A Daudio_pull_fifo.h34 // Consumes |frames_to_consume| audio frames from the FIFO and copies
38 void Consume(AudioBus* destination, int frames_to_consume);
H A Daudio_fifo_unittest.cc156 // order. Note that we set |frames_to_consume| to half the size of the bus.
160 const int frames_to_consume = bus->frames() / 2; local
162 fifo.Consume(bus.get(), 0, frames_to_consume);
164 VerifyValue(bus->channel(j), frames_to_consume, value);
/external/chromium_org/media/filters/
H A Daudio_renderer_impl_unittest.cc628 OutputFrames frames_to_consume(frames_buffered().value / 2);
629 EXPECT_TRUE(ConsumeBufferedData(frames_to_consume));
637 frames_to_consume = frames_buffered();
638 EXPECT_TRUE(ConsumeBufferedData(frames_to_consume));
641 timestamp_helper.AddFrames(frames_to_consume.value);

Completed in 116 milliseconds