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

Unified Diff: remoting/host/audio_capturer_win.cc

Issue 23456019: Fix Windows audio capturer to handle AUDCLNT_BUFFERFLAGS_SILENT flag. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 3 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/host/audio_capturer_win.cc
diff --git a/remoting/host/audio_capturer_win.cc b/remoting/host/audio_capturer_win.cc
index 3fc768b787a76a3ffcf19bca5b80d7310742a2a4..75412db91fbb74cd15e9e69db7d8f12e74ff4184 100644
--- a/remoting/host/audio_capturer_win.cc
+++ b/remoting/host/audio_capturer_win.cc
@@ -242,7 +242,8 @@ void AudioCapturerWin::DoCapture() {
if (FAILED(hr))
break;
- if (!silence_detector_.IsSilence(
+ if ((flags & AUDCLNT_BUFFERFLAGS_SILENT) == 0 &&
+ !silence_detector_.IsSilence(
reinterpret_cast<const int16*>(data), frames * kChannels)) {
scoped_ptr<AudioPacket> packet =
scoped_ptr<AudioPacket>(new AudioPacket());
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698