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

Side by Side Diff: media/audio/win/audio_manager_win.cc

Issue 8818012: Remove the AudioManager singleton. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Set svn eol properties for a couple of files Created 9 years 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) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 "media/audio/audio_io.h" 5 #include "media/audio/audio_io.h"
6 6
7 #include <windows.h> 7 #include <windows.h>
8 #include <objbase.h> // This has to be before initguid.h 8 #include <objbase.h> // This has to be before initguid.h
9 #include <initguid.h> 9 #include <initguid.h>
10 #include <mmsystem.h> 10 #include <mmsystem.h>
(...skipping 286 matching lines...) Expand 10 before | Expand all | Expand 10 after
297 // Always add default device parameters as first element. 297 // Always add default device parameters as first element.
298 if (!device_names->empty()) { 298 if (!device_names->empty()) {
299 media::AudioDeviceName name; 299 media::AudioDeviceName name;
300 name.device_name = AudioManagerBase::kDefaultDeviceName; 300 name.device_name = AudioManagerBase::kDefaultDeviceName;
301 name.unique_id = AudioManagerBase::kDefaultDeviceId; 301 name.unique_id = AudioManagerBase::kDefaultDeviceId;
302 device_names->push_front(name); 302 device_names->push_front(name);
303 } 303 }
304 } 304 }
305 305
306 /// static 306 /// static
307 AudioManager* AudioManager::CreateAudioManager() { 307 AudioManager* CreateAudioManager() {
308 return new AudioManagerWin(); 308 return new AudioManagerWin();
309 } 309 }
OLDNEW
« no previous file with comments | « media/audio/win/audio_low_latency_output_win_unittest.cc ('k') | media/audio/win/audio_output_win_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698