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

Unified Diff: media/audio/clockless_audio_sink.h

Issue 1260193005: Fix incorrect opus seek preroll and flaky pre-skip removal. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix mojo renderer. Created 5 years, 4 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 | « no previous file | 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 1e7e43e9cec1d2833f0b2628d80b4afc6100d582..96745a51ed72ffd91864e5007464c3950c056353 100644
--- a/media/audio/clockless_audio_sink.h
+++ b/media/audio/clockless_audio_sink.h
@@ -40,6 +40,12 @@ class MEDIA_EXPORT ClocklessAudioSink
// Returns the time taken to consume all the audio.
base::TimeDelta render_time() { return playback_time_; }
+ // Enables audio frame hashing. Must be called prior to Initialize().
+ void StartAudioHashForTesting();
+
+ // Returns the hash of all audio frames seen since construction.
+ std::string GetAudioHashForTesting();
+
protected:
~ClocklessAudioSink() override;
@@ -47,6 +53,7 @@ class MEDIA_EXPORT ClocklessAudioSink
scoped_ptr<ClocklessAudioSinkThread> thread_;
bool initialized_;
bool playing_;
+ bool hashing_;
// Time taken in last set of Render() calls.
base::TimeDelta playback_time_;
« no previous file with comments | « no previous file | media/audio/clockless_audio_sink.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698