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

Unified Diff: webrtc/modules/audio_coding/codecs/audio_decoder.h

Issue 1319683002: AudioDecoder: Replace Init() with Reset() (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@buffer
Patch Set: 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
Index: webrtc/modules/audio_coding/codecs/audio_decoder.h
diff --git a/webrtc/modules/audio_coding/codecs/audio_decoder.h b/webrtc/modules/audio_coding/codecs/audio_decoder.h
index 480b1aa26db94138905a563e91ff2784aef07c69..122301c32992ffd359fe8def046f6098cd94d274 100644
--- a/webrtc/modules/audio_coding/codecs/audio_decoder.h
+++ b/webrtc/modules/audio_coding/codecs/audio_decoder.h
@@ -64,8 +64,8 @@ class AudioDecoder {
// one or several lost packets.
virtual size_t DecodePlc(size_t num_frames, int16_t* decoded);
- // Initializes the decoder.
- virtual int Init() = 0;
+ // Reset the decoder state (empty buffers etc.).
hlundin-webrtc 2015/08/26 13:07:23 Resets
kwiberg-webrtc 2015/08/26 18:54:37 Done.
+ virtual void Reset() = 0;
// Notifies the decoder of an incoming packet to NetEQ.
virtual int IncomingPacket(const uint8_t* payload,

Powered by Google App Engine
This is Rietveld 408576698