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

Unified Diff: media/audio/clockless_audio_sink.h

Issue 1942803002: Caching AudioOutputDevice instances in mixer manager (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Make WebAudioSourceProvider to always return real sink info reguardless the client - to avoid behavior change. Created 4 years, 7 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_thread_impl.cc ('k') | media/audio/clockless_audio_sink.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/audio/clockless_audio_sink.h
diff --git a/media/audio/clockless_audio_sink.h b/media/audio/clockless_audio_sink.h
index 366998947f8a3a0d6db152f55b85b0e61dd11ae3..a6db62c57854e9126c2834d3ad507ef66a2eec46 100644
--- a/media/audio/clockless_audio_sink.h
+++ b/media/audio/clockless_audio_sink.h
@@ -26,6 +26,7 @@ class MEDIA_EXPORT ClocklessAudioSink
: NON_EXPORTED_BASE(public AudioRendererSink) {
public:
ClocklessAudioSink();
+ explicit ClocklessAudioSink(const OutputDeviceInfo& device_info);
// AudioRendererSink implementation.
void Initialize(const AudioParameters& params,
@@ -50,6 +51,7 @@ class MEDIA_EXPORT ClocklessAudioSink
~ClocklessAudioSink() override;
private:
+ const OutputDeviceInfo device_info_;
std::unique_ptr<ClocklessAudioSinkThread> thread_;
bool initialized_;
bool playing_;
« no previous file with comments | « content/renderer/render_thread_impl.cc ('k') | media/audio/clockless_audio_sink.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698