Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(884)

Unified Diff: media/base/audio_pull_fifo.cc

Issue 1596523005: Drop WebRTC audio data if OS has skipped frames. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Code review (peah@) + rebase. Created 4 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « media/base/audio_pull_fifo.h ('k') | media/base/audio_pull_fifo_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/base/audio_pull_fifo.cc
diff --git a/media/base/audio_pull_fifo.cc b/media/base/audio_pull_fifo.cc
index cf25142d904f588d11164db363df4d0568ef0757..ca202cd6117edd0f5c492c9752d5fcf6c68bd55c 100644
--- a/media/base/audio_pull_fifo.cc
+++ b/media/base/audio_pull_fifo.cc
@@ -46,6 +46,10 @@ void AudioPullFifo::Consume(AudioBus* destination, int frames_to_consume) {
void AudioPullFifo::Clear() { fifo_index_ = fifo_->frames(); }
+int AudioPullFifo::SizeInFrames() {
tommi (sloooow) - chröme 2016/01/21 11:51:12 can this method be const?
Henrik Grunell 2016/01/21 12:26:16 Yep. Done.
+ return fifo_->frames();
+}
+
int AudioPullFifo::ReadFromFifo(AudioBus* destination,
int frames_to_provide,
int write_pos) {
« no previous file with comments | « media/base/audio_pull_fifo.h ('k') | media/base/audio_pull_fifo_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698