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

Unified Diff: webrtc/modules/audio_coding/neteq/include/neteq.h

Issue 2027993002: NetEq: Ask AudioDecoder for sample rate instead of passing it as an argument (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@samprate1
Patch Set: rebase Created 4 years, 6 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/neteq/include/neteq.h
diff --git a/webrtc/modules/audio_coding/neteq/include/neteq.h b/webrtc/modules/audio_coding/neteq/include/neteq.h
index fd1041a1ea3cf13a7053a7605f0693266e8d5cb5..b03cff776504ace37b5c2783c75fef9ff18197aa 100644
--- a/webrtc/modules/audio_coding/neteq/include/neteq.h
+++ b/webrtc/modules/audio_coding/neteq/include/neteq.h
@@ -183,16 +183,14 @@ class NetEq {
// Provides an externally created decoder object |decoder| to insert in the
// decoder database. The decoder implements a decoder of type |codec| and
- // associates it with |rtp_payload_type| and |codec_name|. The decoder will
- // produce samples at the rate |sample_rate_hz|. Returns kOK on success, kFail
- // on failure.
- // The name is only used to provide information back to the caller about the
- // decoders. Hence, the name is arbitrary, and may be empty.
+ // associates it with |rtp_payload_type| and |codec_name|. Returns kOK on
+ // success, kFail on failure. The name is only used to provide information
+ // back to the caller about the decoders. Hence, the name is arbitrary, and
+ // may be empty.
virtual int RegisterExternalDecoder(AudioDecoder* decoder,
NetEqDecoder codec,
const std::string& codec_name,
- uint8_t rtp_payload_type,
- int sample_rate_hz) = 0;
+ uint8_t rtp_payload_type) = 0;
// Removes |rtp_payload_type| from the codec database. Returns 0 on success,
// -1 on failure.

Powered by Google App Engine
This is Rietveld 408576698