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

Side by Side Diff: content/browser/renderer_host/media/audio_sync_reader.cc

Issue 481193003: Remove AudioBuffersState usage in Chromium (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix audio muter build buster. Created 6 years, 2 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "content/browser/renderer_host/media/audio_sync_reader.h" 5 #include "content/browser/renderer_host/media/audio_sync_reader.h"
6 6
7 #include <algorithm> 7 #include <algorithm>
8 8
9 #include "base/command_line.h" 9 #include "base/command_line.h"
10 #include "base/memory/shared_memory.h" 10 #include "base/memory/shared_memory.h"
11 #include "base/metrics/histogram.h" 11 #include "base/metrics/histogram.h"
12 #include "base/strings/stringprintf.h" 12 #include "base/strings/stringprintf.h"
13 #include "content/browser/renderer_host/media/media_stream_manager.h" 13 #include "content/browser/renderer_host/media/media_stream_manager.h"
14 #include "content/public/common/content_switches.h" 14 #include "content/public/common/content_switches.h"
15 #include "media/audio/audio_buffers_state.h"
16 #include "media/audio/audio_parameters.h" 15 #include "media/audio/audio_parameters.h"
17 16
18 using media::AudioBus; 17 using media::AudioBus;
19 18
20 namespace { 19 namespace {
21 20
22 // Used to log if any audio glitches have been detected during an audio session. 21 // Used to log if any audio glitches have been detected during an audio session.
23 // Elements in this enum should not be added, deleted or rearranged. 22 // Elements in this enum should not be added, deleted or rearranged.
24 enum AudioGlitchResult { 23 enum AudioGlitchResult {
25 AUDIO_RENDERER_NO_AUDIO_GLITCHES = 0, 24 AUDIO_RENDERER_NO_AUDIO_GLITCHES = 0,
(...skipping 141 matching lines...) Expand 10 before | Expand all | Expand 10 after
167 base::TimeDelta::FromMilliseconds(1), 166 base::TimeDelta::FromMilliseconds(1),
168 base::TimeDelta::FromMilliseconds(1000), 167 base::TimeDelta::FromMilliseconds(1000),
169 50); 168 50);
170 return false; 169 return false;
171 } 170 }
172 171
173 return true; 172 return true;
174 } 173 }
175 174
176 } // namespace content 175 } // namespace content
OLDNEW
« no previous file with comments | « content/browser/media/capture/web_contents_audio_muter.cc ('k') | content/common/media/audio_messages.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698