Commit 4b48da77 authored by henrika@chromium.org's avatar henrika@chromium.org

Reduces DVLOG overhead in PulseAudioInputStream for Linux.

The existing DVLOG creates a huge amount of log output when using a */media/*=1 filter.

TBR=xians1
BUG=none

Review URL: https://codereview.chromium.org/465313002

Cr-Commit-Position: refs/heads/master@{#289274}
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@289274 0039d316-1c4b-4281-b951-d872f2087c98
parent 3275842b
......@@ -281,9 +281,6 @@ void PulseAudioInputStream::ReadData() {
hardware_delay += fifo_.GetAvailableFrames() * params_.GetBytesPerFrame();
callback_->OnData(this, audio_bus, hardware_delay, normalized_volume);
// TODO(xians): Remove once PPAPI is using circular buffers.
DVLOG(1) << "OnData is being called consecutively, sleep 5ms to "
<< "wait until render consumes the data";
base::PlatformThread::Sleep(base::TimeDelta::FromMilliseconds(5));
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment