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