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 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
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 bool has_keyboard_mic_; | 62 bool has_keyboard_mic_; |
63 | 63 |
64 // Holds the name and ID of a virtual beamforming device if the machine | |
65 // indicates it has a mic array by providing a mic positions field. | |
66 const AudioDeviceName beamforming_device_name_; | |
Henrik Grunell
2015/08/27 08:38:18
Why is it restricted to only the default device?
ajm
2015/08/28 07:36:13
AudioManagerCras only exposes a single device call
aluebs-chromium
2015/08/28 19:14:30
Do these really need to be part of the state of th
ajm
2015/08/28 23:38:31
They're immutable, so we're not expanding the "sta
aluebs-chromium
2015/08/29 00:00:26
Agreed.
| |
67 // Stores the mic positions field from the device. | |
Henrik Grunell
2015/08/27 08:38:18
Nit: Empty line before comment.
| |
68 const std::string mic_positions_; | |
69 | |
64 DISALLOW_COPY_AND_ASSIGN(AudioManagerCras); | 70 DISALLOW_COPY_AND_ASSIGN(AudioManagerCras); |
65 }; | 71 }; |
66 | 72 |
67 } // namespace media | 73 } // namespace media |
68 | 74 |
69 #endif // MEDIA_AUDIO_CRAS_AUDIO_MANAGER_CRAS_H_ | 75 #endif // MEDIA_AUDIO_CRAS_AUDIO_MANAGER_CRAS_H_ |
OLD | NEW |