Chromium Code Reviews| 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 #include "media/audio/pulse/pulse_util.h" | |
|
DaleCurtis
2013/01/30 02:54:30
Needs guards?
no longer working on chromium
2013/02/12 17:35:59
Done.
| |
| 13 | 14 |
| 14 namespace media { | 15 namespace media { |
| 15 | 16 |
| 16 class AlsaWrapper; | 17 class AlsaWrapper; |
| 17 | 18 |
| 18 class MEDIA_EXPORT AudioManagerLinux : public AudioManagerBase { | 19 class MEDIA_EXPORT AudioManagerLinux : public AudioManagerBase { |
| 19 public: | 20 public: |
| 20 AudioManagerLinux(); | 21 AudioManagerLinux(); |
| 21 | 22 |
| 22 // Implementation of AudioManager. | 23 // Implementation of AudioManager. |
| (...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 68 | 69 |
| 69 // Called by MakeLinearOutputStream and MakeLowLatencyOutputStream. | 70 // Called by MakeLinearOutputStream and MakeLowLatencyOutputStream. |
| 70 AudioOutputStream* MakeOutputStream(const AudioParameters& params); | 71 AudioOutputStream* MakeOutputStream(const AudioParameters& params); |
| 71 | 72 |
| 72 // Called by MakeLinearInputStream and MakeLowLatencyInputStream. | 73 // Called by MakeLinearInputStream and MakeLowLatencyInputStream. |
| 73 AudioInputStream* MakeInputStream(const AudioParameters& params, | 74 AudioInputStream* MakeInputStream(const AudioParameters& params, |
| 74 const std::string& device_id); | 75 const std::string& device_id); |
| 75 | 76 |
| 76 scoped_ptr<AlsaWrapper> wrapper_; | 77 scoped_ptr<AlsaWrapper> wrapper_; |
| 77 | 78 |
| 79 #if defined(USE_PULSEAUDIO) | |
| 80 scoped_ptr<PulseInputObject> pulse_; | |
| 81 #endif | |
| 82 | |
| 78 DISALLOW_COPY_AND_ASSIGN(AudioManagerLinux); | 83 DISALLOW_COPY_AND_ASSIGN(AudioManagerLinux); |
| 79 }; | 84 }; |
| 80 | 85 |
| 81 } // namespace media | 86 } // namespace media |
| 82 | 87 |
| 83 #endif // MEDIA_AUDIO_LINUX_AUDIO_MANAGER_LINUX_H_ | 88 #endif // MEDIA_AUDIO_LINUX_AUDIO_MANAGER_LINUX_H_ |
| OLD | NEW |