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

Unified Diff: media/base/audio_renderer_mixer_input.h

Issue 1666363005: Switching audio clients to using RestartableAudioRendererSink interface as a sink. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: nit fixes Created 4 years, 10 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/renderer/render_frame_impl.cc ('k') | media/base/audio_renderer_mixer_input.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/base/audio_renderer_mixer_input.h
diff --git a/media/base/audio_renderer_mixer_input.h b/media/base/audio_renderer_mixer_input.h
index 50f54bdd436f24a3fb54df0597cf7074a3578b59..34f37c5ee00a3c0d0803ef4f807992942bbf8401 100644
--- a/media/base/audio_renderer_mixer_input.h
+++ b/media/base/audio_renderer_mixer_input.h
@@ -11,6 +11,7 @@
#include "base/macros.h"
#include "media/base/audio_converter.h"
#include "media/base/audio_renderer_sink.h"
+#include "media/base/output_device.h"
#include "url/origin.h"
namespace media {
@@ -32,8 +33,13 @@ class MEDIA_EXPORT AudioRendererMixerInput
const url::Origin& security_origin)>
RemoveMixerCB;
+ typedef base::Callback<AudioParameters(const std::string& device_id,
+ const url::Origin& security_origin)>
+ GetHardwareParamsCB;
+
AudioRendererMixerInput(const GetMixerCB& get_mixer_cb,
const RemoveMixerCB& remove_mixer_cb,
+ const GetHardwareParamsCB& get_hardware_params_cb,
const std::string& device_id,
const url::Origin& security_origin);
@@ -63,7 +69,7 @@ class MEDIA_EXPORT AudioRendererMixerInput
private:
friend class AudioRendererMixerInputTest;
- bool initialized_;
+ bool started_;
bool playing_;
double volume_;
@@ -76,6 +82,10 @@ class MEDIA_EXPORT AudioRendererMixerInput
const GetMixerCB get_mixer_cb_;
const RemoveMixerCB remove_mixer_cb_;
+ // Callbacks provided during construction which allows AudioRendererMixerInput
+ // to access hardware output parameters when it is detached from the mixer.
+ const GetHardwareParamsCB get_hardware_params_cb_;
+
// AudioParameters received during Initialize().
AudioParameters params_;
« no previous file with comments | « content/renderer/render_frame_impl.cc ('k') | media/base/audio_renderer_mixer_input.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698