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

Unified Diff: media/blink/webaudiosourceprovider_impl.h

Issue 1580493004: Plumb audio focus support for spitzer clients. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@delegate_hookup
Patch Set: Detangle. Cleanup. Created 4 years, 11 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/blink/webaudiosourceprovider_impl.h
diff --git a/media/blink/webaudiosourceprovider_impl.h b/media/blink/webaudiosourceprovider_impl.h
index afdf1e3ce8dc6364b5c0d3d5b80e45084a1bf2d2..6c54b73768b7dfaf88096c56978548a0ee4075f5 100644
--- a/media/blink/webaudiosourceprovider_impl.h
+++ b/media/blink/webaudiosourceprovider_impl.h
@@ -40,6 +40,8 @@ class MEDIA_BLINK_EXPORT WebAudioSourceProviderImpl
explicit WebAudioSourceProviderImpl(
const scoped_refptr<RestartableAudioRendererSink>& sink);
+ void enable_audio_focus() { enable_audio_focus_ = true; }
mlamouri (slow - plz ping) 2016/01/19 17:18:17 style: set_enable_audio_focus(bool), otherwise it
DaleCurtis 2016/02/03 02:15:31 There's no real preference over all of chrome (20
+
// blink::WebAudioSourceProvider implementation.
void setClient(blink::WebAudioSourceProviderClient* client) override;
void provideInput(const blink::WebVector<float*>& audio_data,
@@ -85,6 +87,9 @@ class MEDIA_BLINK_EXPORT WebAudioSourceProviderImpl
scoped_refptr<RestartableAudioRendererSink> sink_;
scoped_ptr<AudioBus> bus_wrapper_;
+ // If true, Initialize() will set AudioParamaters::FOCUSABLE.
+ bool enable_audio_focus_;
+
// NOTE: Weak pointers must be invalidated before all other member variables.
base::WeakPtrFactory<WebAudioSourceProviderImpl> weak_factory_;

Powered by Google App Engine
This is Rietveld 408576698