OLD | NEW |
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 Loading... |
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 |
OLD | NEW |