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

Unified Diff: webrtc/modules/audio_coding/codecs/isac/audio_encoder_isac_t_impl.h

Issue 1311533010: Remove AudioEncoder methods SetMaxBitrate and SetMaxPayloadSize (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@ifc-merge-2
Patch Set: Created 5 years, 3 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/isac/audio_encoder_isac_t_impl.h
diff --git a/webrtc/modules/audio_coding/codecs/isac/audio_encoder_isac_t_impl.h b/webrtc/modules/audio_coding/codecs/isac/audio_encoder_isac_t_impl.h
index ad09c3f90dc02f781fe832c29a9b7ac28330f8dd..3cc635c6124bbf388ce301b13265c41ab2ca4276 100644
--- a/webrtc/modules/audio_coding/codecs/isac/audio_encoder_isac_t_impl.h
+++ b/webrtc/modules/audio_coding/codecs/isac/audio_encoder_isac_t_impl.h
@@ -158,20 +158,6 @@ void AudioEncoderIsacT<T>::Reset() {
}
template <typename T>
-void AudioEncoderIsacT<T>::SetMaxPayloadSize(int max_payload_size_bytes) {
- auto conf = config_;
- conf.max_payload_size_bytes = max_payload_size_bytes;
- RecreateEncoderInstance(conf);
-}
-
-template <typename T>
-void AudioEncoderIsacT<T>::SetMaxBitrate(int max_rate_bps) {
- auto conf = config_;
- conf.max_bit_rate = max_rate_bps;
- RecreateEncoderInstance(conf);
-}
-
-template <typename T>
void AudioEncoderIsacT<T>::RecreateEncoderInstance(const Config& config) {
CHECK(config.IsOk());
packet_in_progress_ = false;

Powered by Google App Engine
This is Rietveld 408576698