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

Unified Diff: remoting/host/audio_capturer_linux.cc

Issue 2840773004: [Chromoting] Add AudioVolumeApplier to reduce the complexity and the dependency of kChannels (Closed)
Patch Set: Sync latest changes Created 3 years, 7 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 | « remoting/host/BUILD.gn ('k') | remoting/host/audio_capturer_win.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/host/audio_capturer_linux.cc
diff --git a/remoting/host/audio_capturer_linux.cc b/remoting/host/audio_capturer_linux.cc
index 9c4272053817e98442db5ed117645c3d1851496f..a5a54d443209e4fc95555fe26bd7fe8c47e48097 100644
--- a/remoting/host/audio_capturer_linux.cc
+++ b/remoting/host/audio_capturer_linux.cc
@@ -59,7 +59,7 @@ void AudioCapturerLinux::OnDataRead(
if (silence_detector_.IsSilence(
reinterpret_cast<const int16_t*>(data->data().data()),
- data->data().size() / sizeof(int16_t))) {
+ data->data().size() / sizeof(int16_t) / AudioPipeReader::kChannels)) {
return;
}
« no previous file with comments | « remoting/host/BUILD.gn ('k') | remoting/host/audio_capturer_win.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698