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

Unified Diff: media/audio/audio_system.h

Issue 2761273003: Switching MediaStreamsManager from using AudioManager interface to AudioSystem one. (Closed)
Patch Set: passing device descriptions by value Created 3 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « content/browser/renderer_host/media/media_stream_manager.cc ('k') | media/audio/audio_system_impl.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/audio/audio_system.h
diff --git a/media/audio/audio_system.h b/media/audio/audio_system.h
index de05c69aff9472f5a91975199bb110810559d1f2..66dc622db267575d189e74adc5fb4729c6fbc6c7 100644
--- a/media/audio/audio_system.h
+++ b/media/audio/audio_system.h
@@ -6,6 +6,7 @@
#define MEDIA_AUDIO_AUDIO_SYSTEM_H_
#include "base/callback.h"
+#include "media/audio/audio_device_description.h"
#include "media/base/audio_parameters.h"
#include "media/base/media_export.h"
@@ -26,6 +27,8 @@ class MEDIA_EXPORT AudioSystem {
// others, callbacks must always be bound to weak pointers!
using OnAudioParamsCallback = base::Callback<void(const AudioParameters&)>;
using OnBoolCallback = base::Callback<void(bool)>;
+ using OnDeviceDescriptionsCallback =
+ base::Callback<void(AudioDeviceDescriptions)>;
static AudioSystem* Get();
@@ -53,6 +56,12 @@ class MEDIA_EXPORT AudioSystem {
virtual void HasInputDevices(OnBoolCallback on_has_devices_cb) const = 0;
+ // Replies with device descriptions of input audio devices if |for_input| is
+ // true, and of output audio devices otherwise.
+ virtual void GetDeviceDescriptions(
+ OnDeviceDescriptionsCallback on_descriptions_cp,
Guido Urdaneta 2017/03/21 20:17:40 belated nit: you probably wanted |on_descriptions_
+ bool for_input) = 0;
+
virtual base::SingleThreadTaskRunner* GetTaskRunner() const = 0;
// Must not be used for anything but stream creation.
« no previous file with comments | « content/browser/renderer_host/media/media_stream_manager.cc ('k') | media/audio/audio_system_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698