Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(36)

Side by Side Diff: media/audio/cras/audio_manager_cras.h

Issue 2079843003: Allow AudioManagerCras enumerate audio devices from CRAS not just defaults (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: nit: using display_name instead of device_name Created 4 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « media/audio/audio_manager_unittest.cc ('k') | media/audio/cras/audio_manager_cras.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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_
OLDNEW
« no previous file with comments | « media/audio/audio_manager_unittest.cc ('k') | media/audio/cras/audio_manager_cras.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698