| 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" |
| (...skipping 21 matching lines...) Expand all Loading... |
| 32 | 32 |
| 33 // Implementation of AudioManagerBase. | 33 // Implementation of AudioManagerBase. |
| 34 virtual AudioOutputStream* MakeLinearOutputStream( | 34 virtual AudioOutputStream* MakeLinearOutputStream( |
| 35 const AudioParameters& params) OVERRIDE; | 35 const AudioParameters& params) OVERRIDE; |
| 36 virtual AudioOutputStream* MakeLowLatencyOutputStream( | 36 virtual AudioOutputStream* MakeLowLatencyOutputStream( |
| 37 const AudioParameters& params) OVERRIDE; | 37 const AudioParameters& params) OVERRIDE; |
| 38 virtual AudioInputStream* MakeLinearInputStream( | 38 virtual AudioInputStream* MakeLinearInputStream( |
| 39 const AudioParameters& params, const std::string& device_id) OVERRIDE; | 39 const AudioParameters& params, const std::string& device_id) OVERRIDE; |
| 40 virtual AudioInputStream* MakeLowLatencyInputStream( | 40 virtual AudioInputStream* MakeLowLatencyInputStream( |
| 41 const AudioParameters& params, const std::string& device_id) OVERRIDE; | 41 const AudioParameters& params, const std::string& device_id) OVERRIDE; |
| 42 virtual AudioParameters GetPreferredLowLatencyOutputStreamParameters( | |
| 43 const AudioParameters& input_params) OVERRIDE; | |
| 44 | 42 |
| 45 protected: | 43 protected: |
| 46 virtual ~AudioManagerLinux(); | 44 virtual ~AudioManagerLinux(); |
| 47 | 45 |
| 48 private: | 46 private: |
| 49 enum StreamType { | 47 enum StreamType { |
| 50 kStreamPlayback = 0, | 48 kStreamPlayback = 0, |
| 51 kStreamCapture, | 49 kStreamCapture, |
| 52 }; | 50 }; |
| 53 | 51 |
| (...skipping 23 matching lines...) Expand all Loading... |
| 77 const std::string& device_id); | 75 const std::string& device_id); |
| 78 | 76 |
| 79 scoped_ptr<AlsaWrapper> wrapper_; | 77 scoped_ptr<AlsaWrapper> wrapper_; |
| 80 | 78 |
| 81 DISALLOW_COPY_AND_ASSIGN(AudioManagerLinux); | 79 DISALLOW_COPY_AND_ASSIGN(AudioManagerLinux); |
| 82 }; | 80 }; |
| 83 | 81 |
| 84 } // namespace media | 82 } // namespace media |
| 85 | 83 |
| 86 #endif // MEDIA_AUDIO_LINUX_AUDIO_MANAGER_LINUX_H_ | 84 #endif // MEDIA_AUDIO_LINUX_AUDIO_MANAGER_LINUX_H_ |
| OLD | NEW |