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(std::string output_id) override; | |
Guido Urdaneta
2016/08/29 13:59:48
ditto
| |
97 std::string GetGroupIDInput(std::string input_id) override; | |
Guido Urdaneta
2016/08/29 13:59:47
ditto
| |
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 Loading... | |
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_ |
OLD | NEW |