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 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
59 const AudioParameters& input_params) override; | 59 const AudioParameters& input_params) override; |
60 | 60 |
61 private: | 61 private: |
62 // Called by MakeLinearOutputStream and MakeLowLatencyOutputStream. | 62 // Called by MakeLinearOutputStream and MakeLowLatencyOutputStream. |
63 AudioOutputStream* MakeOutputStream(const AudioParameters& params); | 63 AudioOutputStream* MakeOutputStream(const AudioParameters& params); |
64 | 64 |
65 // Called by MakeLinearInputStream and MakeLowLatencyInputStream. | 65 // Called by MakeLinearInputStream and MakeLowLatencyInputStream. |
66 AudioInputStream* MakeInputStream(const AudioParameters& params, | 66 AudioInputStream* MakeInputStream(const AudioParameters& params, |
67 const std::string& device_id); | 67 const std::string& device_id); |
68 | 68 |
| 69 void GetAudioDeviceNamesImpl(bool is_input, AudioDeviceNames* device_names); |
| 70 |
69 void AddBeamformingDevices(AudioDeviceNames* device_names); | 71 void AddBeamformingDevices(AudioDeviceNames* device_names); |
70 | 72 |
71 // Stores the mic positions field from the device. | 73 // Stores the mic positions field from the device. |
72 std::vector<Point> mic_positions_; | 74 std::vector<Point> mic_positions_; |
73 | 75 |
74 const char* beamforming_on_device_id_; | 76 const char* beamforming_on_device_id_; |
75 const char* beamforming_off_device_id_; | 77 const char* beamforming_off_device_id_; |
76 | 78 |
77 DISALLOW_COPY_AND_ASSIGN(AudioManagerCras); | 79 DISALLOW_COPY_AND_ASSIGN(AudioManagerCras); |
78 }; | 80 }; |
79 | 81 |
80 } // namespace media | 82 } // namespace media |
81 | 83 |
82 #endif // MEDIA_AUDIO_CRAS_AUDIO_MANAGER_CRAS_H_ | 84 #endif // MEDIA_AUDIO_CRAS_AUDIO_MANAGER_CRAS_H_ |
OLD | NEW |