OLD | NEW |
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 Loading... |
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 | |
99 // Get number of input or output streams. | 96 // Get number of input or output streams. |
100 int input_stream_count() const { return num_input_streams_; } | 97 int input_stream_count() const { return num_input_streams_; } |
101 int output_stream_count() const { return num_output_streams_; } | 98 int output_stream_count() const { return num_output_streams_; } |
102 | 99 |
103 protected: | 100 protected: |
104 AudioManagerBase( | 101 AudioManagerBase( |
105 scoped_refptr<base::SingleThreadTaskRunner> task_runner, | 102 scoped_refptr<base::SingleThreadTaskRunner> task_runner, |
106 scoped_refptr<base::SingleThreadTaskRunner> worker_task_runner, | 103 scoped_refptr<base::SingleThreadTaskRunner> worker_task_runner, |
107 AudioLogFactory* audio_log_factory); | 104 AudioLogFactory* audio_log_factory); |
108 | 105 |
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
166 | 163 |
167 // Proxy for creating AudioLog objects. | 164 // Proxy for creating AudioLog objects. |
168 AudioLogFactory* const audio_log_factory_; | 165 AudioLogFactory* const audio_log_factory_; |
169 | 166 |
170 DISALLOW_COPY_AND_ASSIGN(AudioManagerBase); | 167 DISALLOW_COPY_AND_ASSIGN(AudioManagerBase); |
171 }; | 168 }; |
172 | 169 |
173 } // namespace media | 170 } // namespace media |
174 | 171 |
175 #endif // MEDIA_AUDIO_AUDIO_MANAGER_BASE_H_ | 172 #endif // MEDIA_AUDIO_AUDIO_MANAGER_BASE_H_ |
OLD | NEW |