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

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

Issue 1769933002: Looking up device id by session id for AudioRendererMixerInput (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 9 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
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 <string> 8 #include <string>
9 #include <utility> 9 #include <utility>
10 10
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
42 // Input device ID used to capture the default system playback stream. When 42 // Input device ID used to capture the default system playback stream. When
43 // this device ID is passed to MakeAudioInputStream() the returned 43 // this device ID is passed to MakeAudioInputStream() the returned
44 // AudioInputStream will be capturing audio currently being played on the 44 // AudioInputStream will be capturing audio currently being played on the
45 // default playback device. At the moment this feature is supported only on 45 // default playback device. At the moment this feature is supported only on
46 // some platforms. AudioInputStream::Intialize() will return an error on 46 // some platforms. AudioInputStream::Intialize() will return an error on
47 // platforms that don't support it. GetInputStreamParameters() must be used 47 // platforms that don't support it. GetInputStreamParameters() must be used
48 // to get the parameters of the loopback device before creating a loopback 48 // to get the parameters of the loopback device before creating a loopback
49 // stream, otherwise stream initialization may fail. 49 // stream, otherwise stream initialization may fail.
50 static const char kLoopbackInputDeviceId[]; 50 static const char kLoopbackInputDeviceId[];
51 51
52 // Returns true if |device_id| corresponds to the default device.
53 static bool IsDefaultDeviceId(const std::string& device_id);
54
52 ~AudioManagerBase() override; 55 ~AudioManagerBase() override;
53 56
54 // AudioManager: 57 // AudioManager:
55 scoped_refptr<base::SingleThreadTaskRunner> GetTaskRunner() const override; 58 scoped_refptr<base::SingleThreadTaskRunner> GetTaskRunner() const override;
56 scoped_refptr<base::SingleThreadTaskRunner> GetWorkerTaskRunner() override; 59 scoped_refptr<base::SingleThreadTaskRunner> GetWorkerTaskRunner() override;
57 base::string16 GetAudioInputDeviceModel() override; 60 base::string16 GetAudioInputDeviceModel() override;
58 void ShowAudioInputSettings() override; 61 void ShowAudioInputSettings() override;
59 void GetAudioInputDeviceNames(AudioDeviceNames* device_names) override; 62 void GetAudioInputDeviceNames(AudioDeviceNames* device_names) override;
60 void GetAudioOutputDeviceNames(AudioDeviceNames* device_names) override; 63 void GetAudioOutputDeviceNames(AudioDeviceNames* device_names) override;
61 AudioOutputStream* MakeAudioOutputStream( 64 AudioOutputStream* MakeAudioOutputStream(
(...skipping 122 matching lines...) Expand 10 before | Expand all | Expand 10 after
184 187
185 // Proxy for creating AudioLog objects. 188 // Proxy for creating AudioLog objects.
186 AudioLogFactory* const audio_log_factory_; 189 AudioLogFactory* const audio_log_factory_;
187 190
188 DISALLOW_COPY_AND_ASSIGN(AudioManagerBase); 191 DISALLOW_COPY_AND_ASSIGN(AudioManagerBase);
189 }; 192 };
190 193
191 } // namespace media 194 } // namespace media
192 195
193 #endif // MEDIA_AUDIO_AUDIO_MANAGER_BASE_H_ 196 #endif // MEDIA_AUDIO_AUDIO_MANAGER_BASE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698