| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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_ALSA_AUDIO_MANAGER_ALSA_H_ | 5 #ifndef MEDIA_AUDIO_ALSA_AUDIO_MANAGER_ALSA_H_ |
| 6 #define MEDIA_AUDIO_ALSA_AUDIO_MANAGER_ALSA_H_ | 6 #define MEDIA_AUDIO_ALSA_AUDIO_MANAGER_ALSA_H_ |
| 7 | 7 |
| 8 #include <memory> | 8 #include <memory> |
| 9 #include <string> | 9 #include <string> |
| 10 | 10 |
| (...skipping 20 matching lines...) Expand all Loading... |
| 31 bool HasAudioOutputDevices() override; | 31 bool HasAudioOutputDevices() override; |
| 32 bool HasAudioInputDevices() override; | 32 bool HasAudioInputDevices() override; |
| 33 void ShowAudioInputSettings() override; | 33 void ShowAudioInputSettings() override; |
| 34 void GetAudioInputDeviceNames(AudioDeviceNames* device_names) override; | 34 void GetAudioInputDeviceNames(AudioDeviceNames* device_names) override; |
| 35 void GetAudioOutputDeviceNames(AudioDeviceNames* device_names) override; | 35 void GetAudioOutputDeviceNames(AudioDeviceNames* device_names) override; |
| 36 AudioParameters GetInputStreamParameters( | 36 AudioParameters GetInputStreamParameters( |
| 37 const std::string& device_id) override; | 37 const std::string& device_id) override; |
| 38 | 38 |
| 39 // Implementation of AudioManagerBase. | 39 // Implementation of AudioManagerBase. |
| 40 AudioOutputStream* MakeLinearOutputStream( | 40 AudioOutputStream* MakeLinearOutputStream( |
| 41 const AudioParameters& params) override; | 41 const AudioParameters& params, |
| 42 const LogCallback& log_callback) override; |
| 42 AudioOutputStream* MakeLowLatencyOutputStream( | 43 AudioOutputStream* MakeLowLatencyOutputStream( |
| 43 const AudioParameters& params, | 44 const AudioParameters& params, |
| 44 const std::string& device_id) override; | 45 const std::string& device_id, |
| 46 const LogCallback& log_callback) override; |
| 45 AudioInputStream* MakeLinearInputStream( | 47 AudioInputStream* MakeLinearInputStream( |
| 46 const AudioParameters& params, | 48 const AudioParameters& params, |
| 47 const std::string& device_id) override; | 49 const std::string& device_id, |
| 50 const LogCallback& log_callback) override; |
| 48 AudioInputStream* MakeLowLatencyInputStream( | 51 AudioInputStream* MakeLowLatencyInputStream( |
| 49 const AudioParameters& params, | 52 const AudioParameters& params, |
| 50 const std::string& device_id) override; | 53 const std::string& device_id, |
| 54 const LogCallback& log_callback) override; |
| 51 | 55 |
| 52 protected: | 56 protected: |
| 53 ~AudioManagerAlsa() override; | 57 ~AudioManagerAlsa() override; |
| 54 | 58 |
| 55 AudioParameters GetPreferredOutputStreamParameters( | 59 AudioParameters GetPreferredOutputStreamParameters( |
| 56 const std::string& output_device_id, | 60 const std::string& output_device_id, |
| 57 const AudioParameters& input_params) override; | 61 const AudioParameters& input_params) override; |
| 58 | 62 |
| 59 private: | 63 private: |
| 60 enum StreamType { | 64 enum StreamType { |
| (...skipping 29 matching lines...) Expand all Loading... |
| 90 const std::string& device_id); | 94 const std::string& device_id); |
| 91 | 95 |
| 92 std::unique_ptr<AlsaWrapper> wrapper_; | 96 std::unique_ptr<AlsaWrapper> wrapper_; |
| 93 | 97 |
| 94 DISALLOW_COPY_AND_ASSIGN(AudioManagerAlsa); | 98 DISALLOW_COPY_AND_ASSIGN(AudioManagerAlsa); |
| 95 }; | 99 }; |
| 96 | 100 |
| 97 } // namespace media | 101 } // namespace media |
| 98 | 102 |
| 99 #endif // MEDIA_AUDIO_ALSA_AUDIO_MANAGER_ALSA_H_ | 103 #endif // MEDIA_AUDIO_ALSA_AUDIO_MANAGER_ALSA_H_ |
| OLD | NEW |