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

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

Issue 2020353003: AudioDecoderIsacT: Require caller to always specify sample rate (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Created 4 years, 7 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_decoder_isac_t.h
diff --git a/webrtc/modules/audio_coding/codecs/isac/audio_decoder_isac_t.h b/webrtc/modules/audio_coding/codecs/isac/audio_decoder_isac_t.h
index 264cca2bf3885c67e7842ae966325c0b886ae1b5..b6b16ddb543c1011dc2e4b3eaf5492b9573e7b62 100644
--- a/webrtc/modules/audio_coding/codecs/isac/audio_decoder_isac_t.h
+++ b/webrtc/modules/audio_coding/codecs/isac/audio_decoder_isac_t.h
@@ -26,9 +26,6 @@ namespace webrtc {
template <typename T>
class AudioDecoderIsacT final : public AudioDecoder {
public:
- AudioDecoderIsacT();
- explicit AudioDecoderIsacT(
- const rtc::scoped_refptr<LockedIsacBandwidthInfo>& bwinfo);
explicit AudioDecoderIsacT(int sample_rate_hz);
AudioDecoderIsacT(int sample_rate_hz,
const rtc::scoped_refptr<LockedIsacBandwidthInfo>& bwinfo);
@@ -52,11 +49,8 @@ class AudioDecoderIsacT final : public AudioDecoder {
SpeechType* speech_type) override;
private:
- AudioDecoderIsacT(rtc::Optional<int> sample_rate_hz,
- const rtc::scoped_refptr<LockedIsacBandwidthInfo>& bwinfo);
-
typename T::instance_type* isac_state_;
- rtc::Optional<int> sample_rate_hz_;
+ int sample_rate_hz_;
rtc::scoped_refptr<LockedIsacBandwidthInfo> bwinfo_;
RTC_DISALLOW_COPY_AND_ASSIGN(AudioDecoderIsacT);

Powered by Google App Engine
This is Rietveld 408576698