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/renderer/media/audio_hardware.h" | 5 #include "content/renderer/media/audio_hardware.h" |
6 | 6 |
7 #include "base/logging.h" | 7 #include "base/logging.h" |
8 #include "content/common/view_messages.h" | 8 #include "content/common/view_messages.h" |
9 #include "content/renderer/render_thread_impl.h" | 9 #include "content/renderer/render_thread_impl.h" |
10 | 10 |
| 11 using content::RenderThreadImpl; |
11 using media::ChannelLayout; | 12 using media::ChannelLayout; |
12 using media::CHANNEL_LAYOUT_NONE; | 13 using media::CHANNEL_LAYOUT_NONE; |
13 | 14 |
14 static int output_sample_rate = 0; | 15 static int output_sample_rate = 0; |
15 static int input_sample_rate = 0; | 16 static int input_sample_rate = 0; |
16 static size_t output_buffer_size = 0; | 17 static size_t output_buffer_size = 0; |
17 static ChannelLayout input_channel_layout = CHANNEL_LAYOUT_NONE; | 18 static ChannelLayout input_channel_layout = CHANNEL_LAYOUT_NONE; |
18 | 19 |
19 namespace audio_hardware { | 20 namespace audio_hardware { |
20 | 21 |
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
67 void ResetCache() { | 68 void ResetCache() { |
68 DCHECK(RenderThreadImpl::current() != NULL); | 69 DCHECK(RenderThreadImpl::current() != NULL); |
69 | 70 |
70 output_sample_rate = 0.0; | 71 output_sample_rate = 0.0; |
71 input_sample_rate = 0.0; | 72 input_sample_rate = 0.0; |
72 output_buffer_size = 0; | 73 output_buffer_size = 0; |
73 input_channel_layout = CHANNEL_LAYOUT_NONE; | 74 input_channel_layout = CHANNEL_LAYOUT_NONE; |
74 } | 75 } |
75 | 76 |
76 } // namespace audio_hardware | 77 } // namespace audio_hardware |
OLD | NEW |