diff options
Diffstat (limited to 'chromium/media/audio/audio_manager.h')
-rw-r--r-- | chromium/media/audio/audio_manager.h | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/chromium/media/audio/audio_manager.h b/chromium/media/audio/audio_manager.h index 1391742fe5f..4da250df2d7 100644 --- a/chromium/media/audio/audio_manager.h +++ b/chromium/media/audio/audio_manager.h @@ -61,6 +61,15 @@ class MEDIA_EXPORT AudioManager { // called previously to start the hang monitor. Does nothing on OSX. static void EnableHangMonitor(); +#if defined(OS_LINUX) + // Sets the name of the audio source as seen by external apps. Only actually + // used with PulseAudio as of this writing. + static void SetGlobalAppName(const std::string& app_name); + + // Returns the app name or an empty string if it is not set. + static const std::string& GetGlobalAppName(); +#endif + // Should only be used for testing. Resets a previously-set // AudioManagerFactory. The instance of AudioManager is not affected. static void ResetFactoryForTesting(); @@ -70,6 +79,13 @@ class MEDIA_EXPORT AudioManager { // like src/chrome. static AudioManager* Get(); + // Returns the localized name of the generic "default" device. + static std::string GetDefaultDeviceName(); + + // Returns the localized name of the generic default communications device. + // This device is not supported on all platforms. + static std::string GetCommunicationsDeviceName(); + // Returns true if the OS reports existence of audio devices. This does not // guarantee that the existing devices support all formats and sample rates. virtual bool HasAudioOutputDevices() = 0; |