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

Unified Diff: media/base/audio_decoder.h

Issue 126793002: Add Stop() to AudioDecoder. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: remove blank lines Created 6 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
« no previous file with comments | « no previous file | media/base/mock_filters.h » ('j') | media/filters/audio_renderer_impl.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/base/audio_decoder.h
diff --git a/media/base/audio_decoder.h b/media/base/audio_decoder.h
index aa2eeb80ea8af3ac2936ad70f9e73e43d2b786a3..d16151201f3ed032a0a4db7ce9a13836d4b6f8a3 100644
--- a/media/base/audio_decoder.h
+++ b/media/base/audio_decoder.h
@@ -52,6 +52,13 @@ class MEDIA_EXPORT AudioDecoder {
// Reset decoder state, dropping any queued encoded data.
xhwang 2014/01/08 01:33:37 nit: since you are here, s/Reset/Resets, same as I
virtual void Reset(const base::Closure& closure) = 0;
+ // Stops decoder, fires any pending callbacks and sets the decoder to an
+ // uninitialized state. An AudioDecoder cannot be re-initialized after it has
+ // been stopped.
+ // Note that if Initialize() has been called, Stop() must be called and
+ // complete before deleting the decoder.
+ virtual void Stop(const base::Closure& closure) = 0;
+
// Returns various information about the decoded audio format.
virtual int bits_per_channel() = 0;
virtual ChannelLayout channel_layout() = 0;
« no previous file with comments | « no previous file | media/base/mock_filters.h » ('j') | media/filters/audio_renderer_impl.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698