| 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 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 65 | 65 |
| 66 private: | 66 private: |
| 67 // Called by MakeLinearOutputStream and MakeLowLatencyOutputStream. | 67 // Called by MakeLinearOutputStream and MakeLowLatencyOutputStream. |
| 68 AudioOutputStream* MakeOutputStream(const AudioParameters& params, | 68 AudioOutputStream* MakeOutputStream(const AudioParameters& params, |
| 69 const std::string& device_id); | 69 const std::string& device_id); |
| 70 | 70 |
| 71 // Called by MakeLinearInputStream and MakeLowLatencyInputStream. | 71 // Called by MakeLinearInputStream and MakeLowLatencyInputStream. |
| 72 AudioInputStream* MakeInputStream(const AudioParameters& params, | 72 AudioInputStream* MakeInputStream(const AudioParameters& params, |
| 73 const std::string& device_id); | 73 const std::string& device_id); |
| 74 | 74 |
| 75 // Get minimum output buffer size for this board. |
| 76 int GetMinimumOutputBufferSizePerBoard(); |
| 77 |
| 75 void GetAudioDeviceNamesImpl(bool is_input, AudioDeviceNames* device_names); | 78 void GetAudioDeviceNamesImpl(bool is_input, AudioDeviceNames* device_names); |
| 76 | 79 |
| 77 void AddBeamformingDevices(AudioDeviceNames* device_names); | 80 void AddBeamformingDevices(AudioDeviceNames* device_names); |
| 78 | 81 |
| 79 // Stores the mic positions field from the device. | 82 // Stores the mic positions field from the device. |
| 80 std::vector<Point> mic_positions_; | 83 std::vector<Point> mic_positions_; |
| 81 | 84 |
| 82 const char* beamforming_on_device_id_; | 85 const char* beamforming_on_device_id_; |
| 83 const char* beamforming_off_device_id_; | 86 const char* beamforming_off_device_id_; |
| 84 | 87 |
| 85 DISALLOW_COPY_AND_ASSIGN(AudioManagerCras); | 88 DISALLOW_COPY_AND_ASSIGN(AudioManagerCras); |
| 86 }; | 89 }; |
| 87 | 90 |
| 88 } // namespace media | 91 } // namespace media |
| 89 | 92 |
| 90 #endif // MEDIA_AUDIO_CRAS_AUDIO_MANAGER_CRAS_H_ | 93 #endif // MEDIA_AUDIO_CRAS_AUDIO_MANAGER_CRAS_H_ |
| OLD | NEW |