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

Unified Diff: media/audio/audio_manager_base.h

Issue 1317033006: Linux: Do not use a hard coded app name for PulseAudio output. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix chromeos Created 5 years, 4 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 side-by-side diff with in-line comments
Download patch
Index: media/audio/audio_manager_base.h
diff --git a/media/audio/audio_manager_base.h b/media/audio/audio_manager_base.h
index 346fe47f79bb6ab2b6931f3ba38edd452e12cb16..4f65972b9f98df066832ee19efe8eccda9f490f2 100644
--- a/media/audio/audio_manager_base.h
+++ b/media/audio/audio_manager_base.h
@@ -50,6 +50,15 @@ class MEDIA_EXPORT AudioManagerBase : public AudioManager {
// stream, otherwise stream initialization may fail.
static const char kLoopbackInputDeviceId[];
+#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
+
~AudioManagerBase() override;
// AudioManager:

Powered by Google App Engine
This is Rietveld 408576698