AcmReceiver: Look up last decoder in NetEq's table of decoders
AcmReceiver::decoders_ is now one step closer to being unused.
(This is a re-land of https://codereview.webrtc.org/2339953002.)
BUG=webrtc:5801
Review-Url: https://codereview.webrtc.org/2354453003
Cr-Commit-Position: refs/heads/master@{#14303}
diff --git a/webrtc/modules/audio_coding/neteq/include/neteq.h b/webrtc/modules/audio_coding/neteq/include/neteq.h
index cae56b3..22d994e 100644
--- a/webrtc/modules/audio_coding/neteq/include/neteq.h
+++ b/webrtc/modules/audio_coding/neteq/include/neteq.h
@@ -252,6 +252,10 @@
// (Config::sample_rate_hz) is returned.
virtual int last_output_sample_rate_hz() const = 0;
+ // Returns info about the decoder for the given payload type, or an empty
+ // value if we have no decoder for that payload type.
+ virtual rtc::Optional<CodecInst> GetDecoder(int payload_type) const = 0;
+
// Not implemented.
virtual int SetTargetNumberOfChannels() = 0;