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

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

Issue 1362093002: Re-land: Add localized default audio device names. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Exclude media_resource_provider on iOS. Created 5 years, 2 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.cc ('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 <string> 8 #include <string>
9 #include <utility> 9 #include <utility>
10 10
(...skipping 10 matching lines...) Expand all
21 #include "base/win/scoped_com_initializer.h" 21 #include "base/win/scoped_com_initializer.h"
22 #endif 22 #endif
23 23
24 namespace media { 24 namespace media {
25 25
26 class AudioOutputDispatcher; 26 class AudioOutputDispatcher;
27 27
28 // AudioManagerBase provides AudioManager functions common for all platforms. 28 // AudioManagerBase provides AudioManager functions common for all platforms.
29 class MEDIA_EXPORT AudioManagerBase : public AudioManager { 29 class MEDIA_EXPORT AudioManagerBase : public AudioManager {
30 public: 30 public:
31 // TODO(sergeyu): The constants below belong to AudioManager interface, not 31 // TODO(ajm): Move these strings to AudioManager.
32 // to the base implementation. 32 // Unique Id of the generic "default" device. Associated with the localized
33 // name returned from GetDefaultDeviceName().
34 static const char kDefaultDeviceId[];
33 35
34 // Name of the generic "default" device. 36 // Unique Id of the generic default communications device. Associated with
35 static const char kDefaultDeviceName[]; 37 // the localized name returned from GetCommunicationsDeviceName().
36 // Unique Id of the generic "default" device.
37 static const char kDefaultDeviceId[];
38 // Unique Id of the generic default communications device (where supported).
39 static const char kCommunicationsDeviceId[]; 38 static const char kCommunicationsDeviceId[];
40 // Name of the generic default communications device (where supported).
41 static const char kCommunicationsDeviceName[];
42 39
43 // Input device ID used to capture the default system playback stream. When 40 // Input device ID used to capture the default system playback stream. When
44 // this device ID is passed to MakeAudioInputStream() the returned 41 // this device ID is passed to MakeAudioInputStream() the returned
45 // AudioInputStream will be capturing audio currently being played on the 42 // AudioInputStream will be capturing audio currently being played on the
46 // default playback device. At the moment this feature is supported only on 43 // default playback device. At the moment this feature is supported only on
47 // some platforms. AudioInputStream::Intialize() will return an error on 44 // some platforms. AudioInputStream::Intialize() will return an error on
48 // platforms that don't support it. GetInputStreamParameters() must be used 45 // platforms that don't support it. GetInputStreamParameters() must be used
49 // to get the parameters of the loopback device before creating a loopback 46 // to get the parameters of the loopback device before creating a loopback
50 // stream, otherwise stream initialization may fail. 47 // stream, otherwise stream initialization may fail.
51 static const char kLoopbackInputDeviceId[]; 48 static const char kLoopbackInputDeviceId[];
(...skipping 134 matching lines...) Expand 10 before | Expand all | Expand 10 after
186 183
187 // Proxy for creating AudioLog objects. 184 // Proxy for creating AudioLog objects.
188 AudioLogFactory* const audio_log_factory_; 185 AudioLogFactory* const audio_log_factory_;
189 186
190 DISALLOW_COPY_AND_ASSIGN(AudioManagerBase); 187 DISALLOW_COPY_AND_ASSIGN(AudioManagerBase);
191 }; 188 };
192 189
193 } // namespace media 190 } // namespace media
194 191
195 #endif // MEDIA_AUDIO_AUDIO_MANAGER_BASE_H_ 192 #endif // MEDIA_AUDIO_AUDIO_MANAGER_BASE_H_
OLDNEW
« no previous file with comments | « media/audio/audio_manager.cc ('k') | media/audio/audio_manager_base.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698