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

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

Issue 1907973003: media: Move audio_parameters and audio_point to media/base/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 4 years, 8 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
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 "build/build_config.h" 13 #include "build/build_config.h"
14 #include "content/browser/renderer_host/media/media_stream_manager.h" 14 #include "content/browser/renderer_host/media/media_stream_manager.h"
15 #include "content/public/common/content_switches.h" 15 #include "content/public/common/content_switches.h"
16 #include "media/audio/audio_parameters.h" 16 #include "media/base/audio_parameters.h"
17 17
18 using media::AudioBus; 18 using media::AudioBus;
19 using media::AudioOutputBuffer; 19 using media::AudioOutputBuffer;
20 20
21 namespace { 21 namespace {
22 22
23 // Used to log if any audio glitches have been detected during an audio session. 23 // Used to log if any audio glitches have been detected during an audio session.
24 // Elements in this enum should not be added, deleted or rearranged. 24 // Elements in this enum should not be added, deleted or rearranged.
25 enum AudioGlitchResult { 25 enum AudioGlitchResult {
26 AUDIO_RENDERER_NO_AUDIO_GLITCHES = 0, 26 AUDIO_RENDERER_NO_AUDIO_GLITCHES = 0,
(...skipping 182 matching lines...) Expand 10 before | Expand all | Expand 10 after
209 base::TimeDelta::FromMilliseconds(1), 209 base::TimeDelta::FromMilliseconds(1),
210 base::TimeDelta::FromMilliseconds(1000), 210 base::TimeDelta::FromMilliseconds(1000),
211 50); 211 50);
212 return false; 212 return false;
213 } 213 }
214 214
215 return true; 215 return true;
216 } 216 }
217 217
218 } // namespace content 218 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698