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 #ifndef MEDIA_AUDIO_OPENBSD_AUDIO_MANAGER_OPENBSD_H_ | 5 #ifndef MEDIA_AUDIO_OPENBSD_AUDIO_MANAGER_OPENBSD_H_ |
6 #define MEDIA_AUDIO_OPENBSD_AUDIO_MANAGER_OPENBSD_H_ | 6 #define MEDIA_AUDIO_OPENBSD_AUDIO_MANAGER_OPENBSD_H_ |
7 | 7 |
8 #include <set> | 8 #include <set> |
9 | 9 |
10 #include "base/compiler_specific.h" | 10 #include "base/compiler_specific.h" |
11 #include "media/audio/audio_manager_base.h" | 11 #include "media/audio/audio_manager_base.h" |
12 | 12 |
| 13 namespace media { |
| 14 |
13 class MEDIA_EXPORT AudioManagerOpenBSD : public AudioManagerBase { | 15 class MEDIA_EXPORT AudioManagerOpenBSD : public AudioManagerBase { |
14 public: | 16 public: |
15 AudioManagerOpenBSD(); | 17 AudioManagerOpenBSD(); |
16 | 18 |
17 // Call before using a newly created AudioManagerOpenBSD instance. | 19 // Call before using a newly created AudioManagerOpenBSD instance. |
18 virtual void Init() OVERRIDE; | 20 virtual void Init() OVERRIDE; |
19 | 21 |
20 // Implementation of AudioManager. | 22 // Implementation of AudioManager. |
21 virtual bool HasAudioOutputDevices() OVERRIDE; | 23 virtual bool HasAudioOutputDevices() OVERRIDE; |
22 virtual bool HasAudioInputDevices() OVERRIDE; | 24 virtual bool HasAudioInputDevices() OVERRIDE; |
(...skipping 13 matching lines...) Expand all Loading... |
36 protected: | 38 protected: |
37 virtual ~AudioManagerOpenBSD(); | 39 virtual ~AudioManagerOpenBSD(); |
38 | 40 |
39 private: | 41 private: |
40 // Called by MakeLinearOutputStream and MakeLowLatencyOutputStream. | 42 // Called by MakeLinearOutputStream and MakeLowLatencyOutputStream. |
41 AudioOutputStream* MakeOutputStream(const AudioParameters& params); | 43 AudioOutputStream* MakeOutputStream(const AudioParameters& params); |
42 | 44 |
43 DISALLOW_COPY_AND_ASSIGN(AudioManagerOpenBSD); | 45 DISALLOW_COPY_AND_ASSIGN(AudioManagerOpenBSD); |
44 }; | 46 }; |
45 | 47 |
| 48 } // namespace media |
| 49 |
46 #endif // MEDIA_AUDIO_OPENBSD_AUDIO_MANAGER_OPENBSD_H_ | 50 #endif // MEDIA_AUDIO_OPENBSD_AUDIO_MANAGER_OPENBSD_H_ |
OLD | NEW |