diff options
author | sergeyu@chromium.org <sergeyu@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-09-06 05:40:19 +0000 |
---|---|---|
committer | sergeyu@chromium.org <sergeyu@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-09-06 05:40:19 +0000 |
commit | d21aa874cad619b80aac98d3f0e3869064a17b63 (patch) | |
tree | be4627d12230f8b2614c358134874c55dd36dc04 /remoting | |
parent | 5a19c38a98f3a606be0eebda33e9f111b52ff929 (diff) | |
download | chromium_src-d21aa874cad619b80aac98d3f0e3869064a17b63.zip chromium_src-d21aa874cad619b80aac98d3f0e3869064a17b63.tar.gz chromium_src-d21aa874cad619b80aac98d3f0e3869064a17b63.tar.bz2 |
Fix Windows audio capturer to handle AUDCLNT_BUFFERFLAGS_SILENT flag.
Review URL: https://chromiumcodereview.appspot.com/23456019
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@221585 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'remoting')
-rw-r--r-- | remoting/host/audio_capturer_win.cc | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/remoting/host/audio_capturer_win.cc b/remoting/host/audio_capturer_win.cc index 3fc768b..75412db 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()); |