aboutsummaryrefslogtreecommitdiff
path: root/webrtc/modules/audio_coding/codecs/audio_decoder.h
diff options
context:
space:
mode:
authorKarl Wiberg <kwiberg@google.com>2015-08-27 15:22:11 +0200
committerKarl Wiberg <kwiberg@google.com>2015-08-27 13:22:21 +0000
commit4376648df021fd82f25a38694e33678f802d06ea (patch)
tree8f09fa461b252d57194556ae51475b7c79bb6d79 /webrtc/modules/audio_coding/codecs/audio_decoder.h
parent1c3dd38cb819733fa3f558063d4b0c135c5be6e7 (diff)
downloadwebrtc-4376648df021fd82f25a38694e33678f802d06ea.tar.gz
AudioDecoder: Replace Init() with Reset()
The Init() method was previously used to initialize and reset decoders, and returned an error code. The new Reset() method is used for reset only; the constructor is now responsible for fully initializing the AudioDecoder. Reset() doesn't return an error code; it turned out that none of the functions it ended up calling could actually fail, so this CL removes their error return codes as well. R=henrik.lundin@webrtc.org Review URL: https://codereview.webrtc.org/1319683002 . Cr-Commit-Position: refs/heads/master@{#9798}
Diffstat (limited to 'webrtc/modules/audio_coding/codecs/audio_decoder.h')
-rw-r--r--webrtc/modules/audio_coding/codecs/audio_decoder.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/webrtc/modules/audio_coding/codecs/audio_decoder.h b/webrtc/modules/audio_coding/codecs/audio_decoder.h
index 480b1aa26d..5e9e33d47b 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;
+ // Resets the decoder state (empty buffers etc.).
+ virtual void Reset() = 0;
// Notifies the decoder of an incoming packet to NetEQ.
virtual int IncomingPacket(const uint8_t* payload,