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

Unified Diff: webrtc/modules/audio_coding/acm2/rent_a_codec.h

Issue 1673213002: AudioCodingModule: Add methods for injecting external encoder stacks (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Total rebase of the heart Created 4 years, 9 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/acm2/rent_a_codec.h
diff --git a/webrtc/modules/audio_coding/acm2/rent_a_codec.h b/webrtc/modules/audio_coding/acm2/rent_a_codec.h
index d6f159a5b05398d8eb69c17ed94a60847f50cc77..e41f77d10354f9776a9770b3ef2334b022bb3ff8 100644
--- a/webrtc/modules/audio_coding/acm2/rent_a_codec.h
+++ b/webrtc/modules/audio_coding/acm2/rent_a_codec.h
@@ -222,16 +222,13 @@ class RentACodec {
// will be stolen.
std::unique_ptr<AudioEncoder> RentEncoderStack(StackParameters* param);
- // Creates and returns an iSAC decoder, which will remain live until the
- // Rent-A-Codec is destroyed. Subsequent calls will simply return the same
- // object.
- AudioDecoder* RentIsacDecoder();
+ // Creates and returns an iSAC decoder.
+ std::unique_ptr<AudioDecoder> RentIsacDecoder();
private:
std::unique_ptr<AudioEncoder> speech_encoder_;
std::unique_ptr<AudioEncoder> cng_encoder_;
std::unique_ptr<AudioEncoder> red_encoder_;
- std::unique_ptr<AudioDecoder> isac_decoder_;
LockedIsacBandwidthInfo isac_bandwidth_info_;
RTC_DISALLOW_COPY_AND_ASSIGN(RentACodec);

Powered by Google App Engine
This is Rietveld 408576698