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 "media/audio/audio_manager.h" | 5 #include "media/audio/audio_manager.h" |
6 | 6 |
7 #include "base/at_exit.h" | 7 #include "base/at_exit.h" |
8 #include "base/logging.h" | 8 #include "base/logging.h" |
9 #include "base/message_loop.h" | 9 #include "base/message_loop.h" |
10 | 10 |
| 11 namespace media { |
| 12 |
11 // Forward declaration of the platform specific AudioManager factory function. | 13 // Forward declaration of the platform specific AudioManager factory function. |
12 AudioManager* CreateAudioManager(); | 14 AudioManager* CreateAudioManager(); |
13 | 15 |
14 AudioManager::AudioManager() { | 16 AudioManager::AudioManager() { |
15 } | 17 } |
16 | 18 |
17 AudioManager::~AudioManager() { | 19 AudioManager::~AudioManager() { |
18 } | 20 } |
19 | 21 |
20 // static | 22 // static |
21 AudioManager* AudioManager::Create() { | 23 AudioManager* AudioManager::Create() { |
22 AudioManager* ret = CreateAudioManager(); | 24 AudioManager* ret = CreateAudioManager(); |
23 ret->Init(); | 25 ret->Init(); |
24 return ret; | 26 return ret; |
25 } | 27 } |
| 28 |
| 29 } // namespace media |
OLD | NEW |