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

Unified Diff: content/public/browser/media_observer.h

Issue 14600025: Replace AudioSilenceDetector with an AudioPowerMonitor. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Use CancelableCallback instead of extra-task for close reply. Created 7 years, 5 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/mock_media_observer.h ('k') | media/audio/audio_output_controller.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/public/browser/media_observer.h
diff --git a/content/public/browser/media_observer.h b/content/public/browser/media_observer.h
index 8b116c073b93919b53b8b6b5a51bb8d4457c885f..1c264aa5a01a06665eaf660303541c22125f410c 100644
--- a/content/public/browser/media_observer.h
+++ b/content/public/browser/media_observer.h
@@ -30,13 +30,18 @@ class MediaObserver {
const MediaStreamDevice& device,
MediaRequestState state) = 0;
- // Called when an audio stream transitions into playing audible or silent
- // sound, and when the stream is stopped.
+ // Called when an audio stream transitions into a playing or paused state, and
+ // also at regular intervals to report the current power level of the audio
+ // signal in dBFS (decibels relative to full-scale) units. |clipped| is true
+ // if any part of the audio signal has been clipped since the last call. See
+ // media/audio/audio_power_monitor.h for more info.
virtual void OnAudioStreamPlayingChanged(
int render_process_id,
int render_view_id,
int stream_id,
- bool is_playing_and_audible) = 0;
+ bool is_playing,
+ float power_dbfs,
+ bool clipped) = 0;
// Called when the audio stream is being created.
virtual void OnCreatingAudioStream(int render_process_id,
« no previous file with comments | « content/browser/renderer_host/media/mock_media_observer.h ('k') | media/audio/audio_output_controller.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698