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