| 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_LINUX_AUDIO_MANAGER_LINUX_H_ | 5 #ifndef MEDIA_AUDIO_LINUX_AUDIO_MANAGER_LINUX_H_ |
| 6 #define MEDIA_AUDIO_LINUX_AUDIO_MANAGER_LINUX_H_ | 6 #define MEDIA_AUDIO_LINUX_AUDIO_MANAGER_LINUX_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 #include "base/compiler_specific.h" | 9 #include "base/compiler_specific.h" |
| 10 #include "base/memory/ref_counted.h" | 10 #include "base/memory/ref_counted.h" |
| 11 #include "base/threading/thread.h" | 11 #include "base/threading/thread.h" |
| 12 #include "media/audio/audio_manager_base.h" | 12 #include "media/audio/audio_manager_base.h" |
| 13 | 13 |
| 14 namespace media { | 14 namespace media { |
| 15 | 15 |
| 16 class AlsaWrapper; | 16 class AlsaWrapper; |
| 17 | 17 |
| 18 class MEDIA_EXPORT AudioManagerLinux : public AudioManagerBase { | 18 class MEDIA_EXPORT AudioManagerLinux : public AudioManagerBase { |
| 19 public: | 19 public: |
| 20 AudioManagerLinux(); | 20 AudioManagerLinux(); |
| 21 | 21 |
| 22 static void ShowLinuxAudioInputSettings(); |
| 23 |
| 22 // Implementation of AudioManager. | 24 // Implementation of AudioManager. |
| 23 virtual bool HasAudioOutputDevices() OVERRIDE; | 25 virtual bool HasAudioOutputDevices() OVERRIDE; |
| 24 virtual bool HasAudioInputDevices() OVERRIDE; | 26 virtual bool HasAudioInputDevices() OVERRIDE; |
| 25 virtual void ShowAudioInputSettings() OVERRIDE; | 27 virtual void ShowAudioInputSettings() OVERRIDE; |
| 26 virtual void GetAudioInputDeviceNames(media::AudioDeviceNames* device_names) | 28 virtual void GetAudioInputDeviceNames(media::AudioDeviceNames* device_names) |
| 27 OVERRIDE; | 29 OVERRIDE; |
| 28 | 30 |
| 29 // Implementation of AudioManagerBase. | 31 // Implementation of AudioManagerBase. |
| 30 virtual AudioOutputStream* MakeLinearOutputStream( | 32 virtual AudioOutputStream* MakeLinearOutputStream( |
| 31 const AudioParameters& params) OVERRIDE; | 33 const AudioParameters& params) OVERRIDE; |
| (...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 73 const std::string& device_id); | 75 const std::string& device_id); |
| 74 | 76 |
| 75 scoped_ptr<AlsaWrapper> wrapper_; | 77 scoped_ptr<AlsaWrapper> wrapper_; |
| 76 | 78 |
| 77 DISALLOW_COPY_AND_ASSIGN(AudioManagerLinux); | 79 DISALLOW_COPY_AND_ASSIGN(AudioManagerLinux); |
| 78 }; | 80 }; |
| 79 | 81 |
| 80 } // namespace media | 82 } // namespace media |
| 81 | 83 |
| 82 #endif // MEDIA_AUDIO_LINUX_AUDIO_MANAGER_LINUX_H_ | 84 #endif // MEDIA_AUDIO_LINUX_AUDIO_MANAGER_LINUX_H_ |
| OLD | NEW |