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

Side by Side Diff: media/audio/audio_manager_base.h

Issue 2313663002: Reland of Add groupid for media devices. Group audio devices. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix. Created 4 years, 3 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.h ('k') | media/audio/audio_manager_base.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 (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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_AUDIO_MANAGER_BASE_H_ 5 #ifndef MEDIA_AUDIO_AUDIO_MANAGER_BASE_H_
6 #define MEDIA_AUDIO_AUDIO_MANAGER_BASE_H_ 6 #define MEDIA_AUDIO_AUDIO_MANAGER_BASE_H_
7 7
8 #include <memory> 8 #include <memory>
9 #include <string> 9 #include <string>
10 #include <utility> 10 #include <utility>
(...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after
86 const AudioParameters& params, 86 const AudioParameters& params,
87 const std::string& device_id, 87 const std::string& device_id,
88 const LogCallback& log_callback) = 0; 88 const LogCallback& log_callback) = 0;
89 89
90 // Creates the input stream for the |AUDIO_PCM_LOW_LATENCY| format. 90 // Creates the input stream for the |AUDIO_PCM_LOW_LATENCY| format.
91 virtual AudioInputStream* MakeLowLatencyInputStream( 91 virtual AudioInputStream* MakeLowLatencyInputStream(
92 const AudioParameters& params, 92 const AudioParameters& params,
93 const std::string& device_id, 93 const std::string& device_id,
94 const LogCallback& log_callback) = 0; 94 const LogCallback& log_callback) = 0;
95 95
96 std::string GetGroupIDOutput(const std::string& output_device_id) override;
97 std::string GetGroupIDInput(const std::string& input_device_id) override;
98
96 // Get number of input or output streams. 99 // Get number of input or output streams.
97 int input_stream_count() const { return num_input_streams_; } 100 int input_stream_count() const { return num_input_streams_; }
98 int output_stream_count() const { return num_output_streams_; } 101 int output_stream_count() const { return num_output_streams_; }
99 102
100 protected: 103 protected:
101 AudioManagerBase( 104 AudioManagerBase(
102 scoped_refptr<base::SingleThreadTaskRunner> task_runner, 105 scoped_refptr<base::SingleThreadTaskRunner> task_runner,
103 scoped_refptr<base::SingleThreadTaskRunner> worker_task_runner, 106 scoped_refptr<base::SingleThreadTaskRunner> worker_task_runner,
104 AudioLogFactory* audio_log_factory); 107 AudioLogFactory* audio_log_factory);
105 108
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after
163 166
164 // Proxy for creating AudioLog objects. 167 // Proxy for creating AudioLog objects.
165 AudioLogFactory* const audio_log_factory_; 168 AudioLogFactory* const audio_log_factory_;
166 169
167 DISALLOW_COPY_AND_ASSIGN(AudioManagerBase); 170 DISALLOW_COPY_AND_ASSIGN(AudioManagerBase);
168 }; 171 };
169 172
170 } // namespace media 173 } // namespace media
171 174
172 #endif // MEDIA_AUDIO_AUDIO_MANAGER_BASE_H_ 175 #endif // MEDIA_AUDIO_AUDIO_MANAGER_BASE_H_
OLDNEW
« no previous file with comments | « media/audio/audio_manager.h ('k') | media/audio/audio_manager_base.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698