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 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
52 const AudioParameters& input_params) override; | 52 const AudioParameters& input_params) override; |
53 | 53 |
54 private: | 54 private: |
55 // Called by MakeLinearOutputStream and MakeLowLatencyOutputStream. | 55 // Called by MakeLinearOutputStream and MakeLowLatencyOutputStream. |
56 AudioOutputStream* MakeOutputStream(const AudioParameters& params); | 56 AudioOutputStream* MakeOutputStream(const AudioParameters& params); |
57 | 57 |
58 // Called by MakeLinearInputStream and MakeLowLatencyInputStream. | 58 // Called by MakeLinearInputStream and MakeLowLatencyInputStream. |
59 AudioInputStream* MakeInputStream(const AudioParameters& params, | 59 AudioInputStream* MakeInputStream(const AudioParameters& params, |
60 const std::string& device_id); | 60 const std::string& device_id); |
61 | 61 |
| 62 void AddDefaultDevice(AudioDeviceNames* device_names) const; |
| 63 |
62 bool has_keyboard_mic_; | 64 bool has_keyboard_mic_; |
63 | 65 |
64 // Holds the name and ID of the virtual beamforming devices. | 66 // Holds the name and ID of the virtual beamforming devices. |
65 const AudioDeviceName beamforming_on_device_name_; | 67 const AudioDeviceName beamforming_on_device_name_; |
66 const AudioDeviceName beamforming_off_device_name_; | 68 const AudioDeviceName beamforming_off_device_name_; |
67 | 69 |
68 // Stores the mic positions field from the device. | 70 // Stores the mic positions field from the device. |
69 std::vector<Point> mic_positions_; | 71 std::vector<Point> mic_positions_; |
70 | 72 |
71 DISALLOW_COPY_AND_ASSIGN(AudioManagerCras); | 73 DISALLOW_COPY_AND_ASSIGN(AudioManagerCras); |
72 }; | 74 }; |
73 | 75 |
74 } // namespace media | 76 } // namespace media |
75 | 77 |
76 #endif // MEDIA_AUDIO_CRAS_AUDIO_MANAGER_CRAS_H_ | 78 #endif // MEDIA_AUDIO_CRAS_AUDIO_MANAGER_CRAS_H_ |
OLD | NEW |