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

Side by Side Diff: content/renderer/media/audio_hardware.cc

Issue 11232014: Move a bunch of code in content\renderer to the content namespace. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: fix mac Created 8 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/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
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
OLDNEW
« no previous file with comments | « content/renderer/load_progress_tracker.cc ('k') | content/renderer/media/media_stream_dependency_factory.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698