OLD | NEW |
| (Empty) |
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | |
2 // Use of this source code is governed by a BSD-style license that can be | |
3 // found in the LICENSE file. | |
4 | |
5 #ifndef MEDIA_AUDIO_AUDIO_MANAGER_BASE_H_ | |
6 #define MEDIA_AUDIO_AUDIO_MANAGER_BASE_H_ | |
7 | |
8 #include "base/thread.h" | |
9 #include "media/audio/audio_manager.h" | |
10 | |
11 // AudioManagerBase provides AudioManager functions common for all platforms. | |
12 class AudioManagerBase : public AudioManager { | |
13 public: | |
14 AudioManagerBase(); | |
15 | |
16 virtual void Init(); | |
17 | |
18 virtual MessageLoop* GetMessageLoop(); | |
19 | |
20 protected: | |
21 virtual ~AudioManagerBase() {} | |
22 | |
23 bool initialized() { return initialized_; } | |
24 | |
25 protected: | |
26 // Thread used to interact with AudioOutputStreams created by this | |
27 // audio manger. | |
28 base::Thread audio_thread_; | |
29 | |
30 bool initialized_; | |
31 | |
32 DISALLOW_COPY_AND_ASSIGN(AudioManagerBase); | |
33 }; | |
34 | |
35 #endif // MEDIA_AUDIO_AUDIO_MANAGER_BASE_H_ | |
OLD | NEW |