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_CRAS_AUDIO_MANAGER_CRAS_H_ | 5 #ifndef MEDIA_AUDIO_CRAS_AUDIO_MANAGER_CRAS_H_ |
6 #define MEDIA_AUDIO_CRAS_AUDIO_MANAGER_CRAS_H_ | 6 #define MEDIA_AUDIO_CRAS_AUDIO_MANAGER_CRAS_H_ |
7 | 7 |
8 #include <cras_types.h> | 8 #include <cras_types.h> |
9 | 9 |
10 #include <string> | 10 #include <string> |
(...skipping 10 matching lines...) Expand all Loading... |
21 | 21 |
22 // AudioManager implementation. | 22 // AudioManager implementation. |
23 bool HasAudioOutputDevices() override; | 23 bool HasAudioOutputDevices() override; |
24 bool HasAudioInputDevices() override; | 24 bool HasAudioInputDevices() override; |
25 void ShowAudioInputSettings() override; | 25 void ShowAudioInputSettings() override; |
26 void GetAudioInputDeviceNames(AudioDeviceNames* device_names) override; | 26 void GetAudioInputDeviceNames(AudioDeviceNames* device_names) override; |
27 void GetAudioOutputDeviceNames(AudioDeviceNames* device_names) override; | 27 void GetAudioOutputDeviceNames(AudioDeviceNames* device_names) override; |
28 AudioParameters GetInputStreamParameters( | 28 AudioParameters GetInputStreamParameters( |
29 const std::string& device_id) override; | 29 const std::string& device_id) override; |
30 void SetHasKeyboardMic() override; | 30 void SetHasKeyboardMic() override; |
| 31 void SetHasInputDevices(bool has_input_devices) override; |
31 | 32 |
32 // AudioManagerBase implementation. | 33 // AudioManagerBase implementation. |
33 AudioOutputStream* MakeLinearOutputStream( | 34 AudioOutputStream* MakeLinearOutputStream( |
34 const AudioParameters& params) override; | 35 const AudioParameters& params) override; |
35 AudioOutputStream* MakeLowLatencyOutputStream( | 36 AudioOutputStream* MakeLowLatencyOutputStream( |
36 const AudioParameters& params, | 37 const AudioParameters& params, |
37 const std::string& device_id) override; | 38 const std::string& device_id) override; |
38 AudioInputStream* MakeLinearInputStream( | 39 AudioInputStream* MakeLinearInputStream( |
39 const AudioParameters& params, | 40 const AudioParameters& params, |
40 const std::string& device_id) override; | 41 const std::string& device_id) override; |
(...skipping 12 matching lines...) Expand all Loading... |
53 | 54 |
54 private: | 55 private: |
55 // Called by MakeLinearOutputStream and MakeLowLatencyOutputStream. | 56 // Called by MakeLinearOutputStream and MakeLowLatencyOutputStream. |
56 AudioOutputStream* MakeOutputStream(const AudioParameters& params); | 57 AudioOutputStream* MakeOutputStream(const AudioParameters& params); |
57 | 58 |
58 // Called by MakeLinearInputStream and MakeLowLatencyInputStream. | 59 // Called by MakeLinearInputStream and MakeLowLatencyInputStream. |
59 AudioInputStream* MakeInputStream(const AudioParameters& params, | 60 AudioInputStream* MakeInputStream(const AudioParameters& params, |
60 const std::string& device_id); | 61 const std::string& device_id); |
61 | 62 |
62 bool has_keyboard_mic_; | 63 bool has_keyboard_mic_; |
| 64 bool has_input_devices_; |
63 | 65 |
64 DISALLOW_COPY_AND_ASSIGN(AudioManagerCras); | 66 DISALLOW_COPY_AND_ASSIGN(AudioManagerCras); |
65 }; | 67 }; |
66 | 68 |
67 } // namespace media | 69 } // namespace media |
68 | 70 |
69 #endif // MEDIA_AUDIO_CRAS_AUDIO_MANAGER_CRAS_H_ | 71 #endif // MEDIA_AUDIO_CRAS_AUDIO_MANAGER_CRAS_H_ |
OLD | NEW |