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

Unified Diff: webrtc/common_audio/channel_buffer.cc

Issue 2053773002: Keep track of the user-facing number of channels in a ChannelBuffer (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Created 4 years, 6 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
Index: webrtc/common_audio/channel_buffer.cc
diff --git a/webrtc/common_audio/channel_buffer.cc b/webrtc/common_audio/channel_buffer.cc
index 349d4245ccdb6e472db3cb60ee3a951c1e333b3b..3c43b3bf3e923a1a711d2c012b7a18bd717b73c7 100644
--- a/webrtc/common_audio/channel_buffer.cc
+++ b/webrtc/common_audio/channel_buffer.cc
@@ -54,6 +54,7 @@ void IFChannelBuffer::RefreshF() const {
float_channels[i][j] = int_channels[i][j];
}
}
+ fbuf_.set_num_channels(ibuf_.num_channels());
peah-webrtc 2016/06/10 11:39:34 This seems wrong, similarly to what is described b
aluebs-webrtc 2016/06/14 01:40:28 This is not similar to below.
fvalid_ = true;
}
}
@@ -68,6 +69,7 @@ void IFChannelBuffer::RefreshI() const {
ibuf_.num_frames(),
int_channels[i]);
}
+ ibuf_.set_num_channels(fbuf_.num_channels());
peah-webrtc 2016/06/10 11:39:34 This seems wrong: Afaics: 1) First ibuf_.num_chann
aluebs-webrtc 2016/06/14 01:40:28 Good catch. This was not an issue before since the
ivalid_ = true;
}
}

Powered by Google App Engine
This is Rietveld 408576698