2013-01-29 12:09:21 +00:00
|
|
|
/*
|
|
|
|
|
* Copyright (c) 2012 The WebRTC project authors. All Rights Reserved.
|
|
|
|
|
*
|
|
|
|
|
* Use of this source code is governed by a BSD-style license
|
|
|
|
|
* that can be found in the LICENSE file in the root of the source
|
|
|
|
|
* tree. An additional intellectual property rights grant can be found
|
|
|
|
|
* in the file PATENTS. All contributing project authors may
|
|
|
|
|
* be found in the AUTHORS file in the root of the source tree.
|
|
|
|
|
*/
|
|
|
|
|
|
2015-10-29 11:31:02 +01:00
|
|
|
#ifndef WEBRTC_MODULES_AUDIO_CODING_NETEQ_INCLUDE_NETEQ_H_
|
|
|
|
|
#define WEBRTC_MODULES_AUDIO_CODING_NETEQ_INCLUDE_NETEQ_H_
|
2013-01-29 12:09:21 +00:00
|
|
|
|
2013-08-05 16:22:53 +00:00
|
|
|
#include <string.h> // Provide access to size_t.
|
|
|
|
|
|
2015-05-25 16:58:41 +02:00
|
|
|
#include <string>
|
2013-01-29 12:09:21 +00:00
|
|
|
|
2014-05-21 21:18:46 +00:00
|
|
|
#include "webrtc/base/constructormagic.h"
|
2016-04-06 01:39:22 -07:00
|
|
|
#include "webrtc/base/optional.h"
|
2016-05-25 07:37:43 -07:00
|
|
|
#include "webrtc/base/scoped_ref_ptr.h"
|
2013-10-28 09:21:07 +00:00
|
|
|
#include "webrtc/common_types.h"
|
2014-12-09 10:12:53 +00:00
|
|
|
#include "webrtc/modules/audio_coding/neteq/audio_decoder_impl.h"
|
2013-01-29 12:09:21 +00:00
|
|
|
#include "webrtc/typedefs.h"
|
|
|
|
|
|
|
|
|
|
namespace webrtc {
|
|
|
|
|
|
|
|
|
|
// Forward declarations.
|
2016-03-04 10:34:21 -08:00
|
|
|
class AudioFrame;
|
2013-01-29 12:09:21 +00:00
|
|
|
struct WebRtcRTPHeader;
|
2016-05-25 07:37:43 -07:00
|
|
|
class AudioDecoderFactory;
|
2013-01-29 12:09:21 +00:00
|
|
|
|
|
|
|
|
struct NetEqNetworkStatistics {
|
|
|
|
|
uint16_t current_buffer_size_ms; // Current jitter buffer size in ms.
|
|
|
|
|
uint16_t preferred_buffer_size_ms; // Target buffer size in ms.
|
|
|
|
|
uint16_t jitter_peaks_found; // 1 if adding extra delay due to peaky
|
|
|
|
|
// jitter; 0 otherwise.
|
|
|
|
|
uint16_t packet_loss_rate; // Loss rate (network + late) in Q14.
|
|
|
|
|
uint16_t packet_discard_rate; // Late loss rate in Q14.
|
|
|
|
|
uint16_t expand_rate; // Fraction (of original stream) of synthesized
|
2015-02-18 10:01:53 +00:00
|
|
|
// audio inserted through expansion (in Q14).
|
|
|
|
|
uint16_t speech_expand_rate; // Fraction (of original stream) of synthesized
|
|
|
|
|
// speech inserted through expansion (in Q14).
|
2013-01-29 12:09:21 +00:00
|
|
|
uint16_t preemptive_rate; // Fraction of data inserted through pre-emptive
|
|
|
|
|
// expansion (in Q14).
|
|
|
|
|
uint16_t accelerate_rate; // Fraction of data removed through acceleration
|
|
|
|
|
// (in Q14).
|
2015-02-17 10:17:09 +00:00
|
|
|
uint16_t secondary_decoded_rate; // Fraction of data coming from secondary
|
|
|
|
|
// decoding (in Q14).
|
2013-01-29 12:09:21 +00:00
|
|
|
int32_t clockdrift_ppm; // Average clock-drift in parts-per-million
|
|
|
|
|
// (positive or negative).
|
Update a ton of audio code to use size_t more correctly and in general reduce
use of int16_t/uint16_t.
This is the upshot of a recommendation by henrik.lundin and kwiberg on an original small change ( https://webrtc-codereview.appspot.com/42569004/#ps1 ) to stop using int16_t just because values could fit in it, and is similar in nature to a previous "mass change to use size_t more" ( https://webrtc-codereview.appspot.com/23129004/ ) which also needed to be split up for review but to land all at once, since, like adding "const", such changes tend to cause a lot of transitive effects.
This was be reviewed and approved in pieces:
https://codereview.webrtc.org/1224093003
https://codereview.webrtc.org/1224123002
https://codereview.webrtc.org/1224163002
https://codereview.webrtc.org/1225133003
https://codereview.webrtc.org/1225173002
https://codereview.webrtc.org/1227163003
https://codereview.webrtc.org/1227203003
https://codereview.webrtc.org/1227213002
https://codereview.webrtc.org/1227893002
https://codereview.webrtc.org/1228793004
https://codereview.webrtc.org/1228803003
https://codereview.webrtc.org/1228823002
https://codereview.webrtc.org/1228823003
https://codereview.webrtc.org/1228843002
https://codereview.webrtc.org/1230693002
https://codereview.webrtc.org/1231713002
The change is being landed as TBR to all the folks who reviewed the above.
BUG=chromium:81439
TEST=none
R=andrew@webrtc.org, pbos@webrtc.org
TBR=aluebs, andrew, asapersson, henrika, hlundin, jan.skoglund, kwiberg, minyue, pbos, pthatcher
Review URL: https://codereview.webrtc.org/1230503003 .
Cr-Commit-Position: refs/heads/master@{#9768}
2015-08-24 14:52:23 -07:00
|
|
|
size_t added_zero_samples; // Number of zero samples added in "off" mode.
|
2015-08-25 13:08:04 +02:00
|
|
|
// Statistics for packet waiting times, i.e., the time between a packet
|
|
|
|
|
// arrives until it is decoded.
|
|
|
|
|
int mean_waiting_time_ms;
|
|
|
|
|
int median_waiting_time_ms;
|
|
|
|
|
int min_waiting_time_ms;
|
|
|
|
|
int max_waiting_time_ms;
|
2013-01-29 12:09:21 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
|
|
enum NetEqPlayoutMode {
|
|
|
|
|
kPlayoutOn,
|
|
|
|
|
kPlayoutOff,
|
|
|
|
|
kPlayoutFax,
|
|
|
|
|
kPlayoutStreaming
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
// This is the interface class for NetEq.
|
|
|
|
|
class NetEq {
|
|
|
|
|
public:
|
2014-08-07 12:27:37 +00:00
|
|
|
enum BackgroundNoiseMode {
|
|
|
|
|
kBgnOn, // Default behavior with eternal noise.
|
|
|
|
|
kBgnFade, // Noise fades to zero after some time.
|
|
|
|
|
kBgnOff // Background noise is always zero.
|
|
|
|
|
};
|
|
|
|
|
|
2014-04-14 18:49:17 +00:00
|
|
|
struct Config {
|
|
|
|
|
Config()
|
|
|
|
|
: sample_rate_hz(16000),
|
2014-04-28 08:20:04 +00:00
|
|
|
enable_audio_classifier(false),
|
2015-11-02 03:25:57 -08:00
|
|
|
enable_post_decode_vad(false),
|
2014-04-28 08:20:04 +00:00
|
|
|
max_packets_in_buffer(50),
|
|
|
|
|
// |max_delay_ms| has the same effect as calling SetMaximumDelay().
|
2014-08-07 12:27:37 +00:00
|
|
|
max_delay_ms(2000),
|
2014-10-07 06:37:39 +00:00
|
|
|
background_noise_mode(kBgnOff),
|
2015-05-27 14:33:29 +02:00
|
|
|
playout_mode(kPlayoutOn),
|
|
|
|
|
enable_fast_accelerate(false) {}
|
2014-04-14 18:49:17 +00:00
|
|
|
|
2015-05-25 16:58:41 +02:00
|
|
|
std::string ToString() const;
|
|
|
|
|
|
2015-05-08 10:33:57 +02:00
|
|
|
int sample_rate_hz; // Initial value. Will change with input data.
|
2014-04-14 18:49:17 +00:00
|
|
|
bool enable_audio_classifier;
|
2015-11-02 03:25:57 -08:00
|
|
|
bool enable_post_decode_vad;
|
Update a ton of audio code to use size_t more correctly and in general reduce
use of int16_t/uint16_t.
This is the upshot of a recommendation by henrik.lundin and kwiberg on an original small change ( https://webrtc-codereview.appspot.com/42569004/#ps1 ) to stop using int16_t just because values could fit in it, and is similar in nature to a previous "mass change to use size_t more" ( https://webrtc-codereview.appspot.com/23129004/ ) which also needed to be split up for review but to land all at once, since, like adding "const", such changes tend to cause a lot of transitive effects.
This was be reviewed and approved in pieces:
https://codereview.webrtc.org/1224093003
https://codereview.webrtc.org/1224123002
https://codereview.webrtc.org/1224163002
https://codereview.webrtc.org/1225133003
https://codereview.webrtc.org/1225173002
https://codereview.webrtc.org/1227163003
https://codereview.webrtc.org/1227203003
https://codereview.webrtc.org/1227213002
https://codereview.webrtc.org/1227893002
https://codereview.webrtc.org/1228793004
https://codereview.webrtc.org/1228803003
https://codereview.webrtc.org/1228823002
https://codereview.webrtc.org/1228823003
https://codereview.webrtc.org/1228843002
https://codereview.webrtc.org/1230693002
https://codereview.webrtc.org/1231713002
The change is being landed as TBR to all the folks who reviewed the above.
BUG=chromium:81439
TEST=none
R=andrew@webrtc.org, pbos@webrtc.org
TBR=aluebs, andrew, asapersson, henrika, hlundin, jan.skoglund, kwiberg, minyue, pbos, pthatcher
Review URL: https://codereview.webrtc.org/1230503003 .
Cr-Commit-Position: refs/heads/master@{#9768}
2015-08-24 14:52:23 -07:00
|
|
|
size_t max_packets_in_buffer;
|
2014-04-28 08:20:04 +00:00
|
|
|
int max_delay_ms;
|
2014-08-07 12:27:37 +00:00
|
|
|
BackgroundNoiseMode background_noise_mode;
|
2014-10-07 06:37:39 +00:00
|
|
|
NetEqPlayoutMode playout_mode;
|
2015-05-27 14:33:29 +02:00
|
|
|
bool enable_fast_accelerate;
|
2016-05-12 13:51:28 -07:00
|
|
|
bool enable_muted_state = false;
|
2014-04-14 18:49:17 +00:00
|
|
|
};
|
|
|
|
|
|
2013-01-29 12:09:21 +00:00
|
|
|
enum ReturnCodes {
|
|
|
|
|
kOK = 0,
|
|
|
|
|
kFail = -1,
|
|
|
|
|
kNotImplemented = -2
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
enum ErrorCodes {
|
|
|
|
|
kNoError = 0,
|
|
|
|
|
kOtherError,
|
|
|
|
|
kInvalidRtpPayloadType,
|
|
|
|
|
kUnknownRtpPayloadType,
|
|
|
|
|
kCodecNotSupported,
|
|
|
|
|
kDecoderExists,
|
|
|
|
|
kDecoderNotFound,
|
|
|
|
|
kInvalidSampleRate,
|
|
|
|
|
kInvalidPointer,
|
|
|
|
|
kAccelerateError,
|
|
|
|
|
kPreemptiveExpandError,
|
|
|
|
|
kComfortNoiseErrorCode,
|
|
|
|
|
kDecoderErrorCode,
|
|
|
|
|
kOtherDecoderError,
|
|
|
|
|
kInvalidOperation,
|
|
|
|
|
kDtmfParameterError,
|
|
|
|
|
kDtmfParsingError,
|
|
|
|
|
kDtmfInsertError,
|
|
|
|
|
kStereoNotSupported,
|
|
|
|
|
kSampleUnderrun,
|
|
|
|
|
kDecodedTooMuch,
|
|
|
|
|
kFrameSplitError,
|
|
|
|
|
kRedundancySplitError,
|
2016-09-08 04:52:55 -07:00
|
|
|
kPacketBufferCorruption
|
2013-01-29 12:09:21 +00:00
|
|
|
};
|
|
|
|
|
|
2014-04-14 18:49:17 +00:00
|
|
|
// Creates a new NetEq object, with parameters set in |config|. The |config|
|
|
|
|
|
// object will only have to be valid for the duration of the call to this
|
|
|
|
|
// method.
|
2016-05-25 07:37:43 -07:00
|
|
|
static NetEq* Create(
|
|
|
|
|
const NetEq::Config& config,
|
|
|
|
|
const rtc::scoped_refptr<AudioDecoderFactory>& decoder_factory);
|
2013-01-29 12:09:21 +00:00
|
|
|
|
|
|
|
|
virtual ~NetEq() {}
|
|
|
|
|
|
|
|
|
|
// Inserts a new packet into NetEq. The |receive_timestamp| is an indication
|
|
|
|
|
// of the time when the packet was received, and should be measured with
|
|
|
|
|
// the same tick rate as the RTP timestamp of the current payload.
|
|
|
|
|
// Returns 0 on success, -1 on failure.
|
|
|
|
|
virtual int InsertPacket(const WebRtcRTPHeader& rtp_header,
|
2015-11-11 10:34:00 -08:00
|
|
|
rtc::ArrayView<const uint8_t> payload,
|
2013-01-29 12:09:21 +00:00
|
|
|
uint32_t receive_timestamp) = 0;
|
|
|
|
|
|
|
|
|
|
// Instructs NetEq to deliver 10 ms of audio data. The data is written to
|
2016-04-06 01:03:02 -07:00
|
|
|
// |audio_frame|. All data in |audio_frame| is wiped; |data_|, |speech_type_|,
|
|
|
|
|
// |num_channels_|, |sample_rate_hz_|, |samples_per_channel_|, and
|
2016-03-08 02:37:57 -08:00
|
|
|
// |vad_activity_| are updated upon success. If an error is returned, some
|
2016-08-24 11:18:49 -07:00
|
|
|
// fields may not have been updated, or may contain inconsistent values.
|
2016-05-12 13:51:28 -07:00
|
|
|
// If muted state is enabled (through Config::enable_muted_state), |muted|
|
|
|
|
|
// may be set to true after a prolonged expand period. When this happens, the
|
|
|
|
|
// |data_| in |audio_frame| is not written, but should be interpreted as being
|
|
|
|
|
// all zeros.
|
2013-01-29 12:09:21 +00:00
|
|
|
// Returns kOK on success, or kFail in case of an error.
|
2016-05-12 13:51:28 -07:00
|
|
|
virtual int GetAudio(AudioFrame* audio_frame, bool* muted) = 0;
|
2013-01-29 12:09:21 +00:00
|
|
|
|
2015-12-09 06:20:58 -08:00
|
|
|
// Associates |rtp_payload_type| with |codec| and |codec_name|, and stores the
|
|
|
|
|
// information in the codec database. Returns 0 on success, -1 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.
|
2015-10-29 06:20:28 -07:00
|
|
|
virtual int RegisterPayloadType(NetEqDecoder codec,
|
2015-12-09 06:20:58 -08:00
|
|
|
const std::string& codec_name,
|
2013-01-29 12:09:21 +00:00
|
|
|
uint8_t rtp_payload_type) = 0;
|
|
|
|
|
|
|
|
|
|
// Provides an externally created decoder object |decoder| to insert in the
|
|
|
|
|
// decoder database. The decoder implements a decoder of type |codec| and
|
2016-06-16 03:18:00 -07:00
|
|
|
// 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.
|
2013-01-29 12:09:21 +00:00
|
|
|
virtual int RegisterExternalDecoder(AudioDecoder* decoder,
|
2015-10-29 06:20:28 -07:00
|
|
|
NetEqDecoder codec,
|
2015-12-09 06:20:58 -08:00
|
|
|
const std::string& codec_name,
|
2016-06-16 03:18:00 -07:00
|
|
|
uint8_t rtp_payload_type) = 0;
|
2013-01-29 12:09:21 +00:00
|
|
|
|
|
|
|
|
// Removes |rtp_payload_type| from the codec database. Returns 0 on success,
|
|
|
|
|
// -1 on failure.
|
|
|
|
|
virtual int RemovePayloadType(uint8_t rtp_payload_type) = 0;
|
|
|
|
|
|
2016-09-20 04:02:25 -07:00
|
|
|
// Removes all payload types from the codec database.
|
|
|
|
|
virtual void RemoveAllPayloadTypes() = 0;
|
|
|
|
|
|
2013-08-16 23:44:24 +00:00
|
|
|
// Sets a minimum delay in millisecond for packet buffer. The minimum is
|
|
|
|
|
// maintained unless a higher latency is dictated by channel condition.
|
|
|
|
|
// Returns true if the minimum is successfully applied, otherwise false is
|
|
|
|
|
// returned.
|
|
|
|
|
virtual bool SetMinimumDelay(int delay_ms) = 0;
|
|
|
|
|
|
|
|
|
|
// Sets a maximum delay in milliseconds for packet buffer. The latency will
|
|
|
|
|
// not exceed the given value, even required delay (given the channel
|
2014-04-28 08:20:04 +00:00
|
|
|
// conditions) is higher. Calling this method has the same effect as setting
|
|
|
|
|
// the |max_delay_ms| value in the NetEq::Config struct.
|
2013-08-16 23:44:24 +00:00
|
|
|
virtual bool SetMaximumDelay(int delay_ms) = 0;
|
|
|
|
|
|
|
|
|
|
// The smallest latency required. This is computed bases on inter-arrival
|
|
|
|
|
// time and internal NetEq logic. Note that in computing this latency none of
|
|
|
|
|
// the user defined limits (applied by calling setMinimumDelay() and/or
|
|
|
|
|
// SetMaximumDelay()) are applied.
|
|
|
|
|
virtual int LeastRequiredDelayMs() const = 0;
|
2013-01-29 12:09:21 +00:00
|
|
|
|
|
|
|
|
// Not implemented.
|
|
|
|
|
virtual int SetTargetDelay() = 0;
|
|
|
|
|
|
|
|
|
|
// Not implemented.
|
|
|
|
|
virtual int TargetDelay() = 0;
|
|
|
|
|
|
2015-08-27 13:12:22 -07:00
|
|
|
// Returns the current total delay (packet buffer and sync buffer) in ms.
|
|
|
|
|
virtual int CurrentDelayMs() const = 0;
|
2016-08-22 15:39:53 -07:00
|
|
|
|
|
|
|
|
// Returns the current total delay (packet buffer and sync buffer) in ms,
|
|
|
|
|
// with smoothing applied to even out short-time fluctuations due to jitter.
|
|
|
|
|
// The packet buffer part of the delay is not updated during DTX/CNG periods.
|
|
|
|
|
virtual int FilteredCurrentDelayMs() const = 0;
|
2013-01-29 12:09:21 +00:00
|
|
|
|
|
|
|
|
// Sets the playout mode to |mode|.
|
2014-10-07 06:37:39 +00:00
|
|
|
// Deprecated. Set the mode in the Config struct passed to the constructor.
|
|
|
|
|
// TODO(henrik.lundin) Delete.
|
2013-01-29 12:09:21 +00:00
|
|
|
virtual void SetPlayoutMode(NetEqPlayoutMode mode) = 0;
|
|
|
|
|
|
|
|
|
|
// Returns the current playout mode.
|
2014-10-07 06:37:39 +00:00
|
|
|
// Deprecated.
|
|
|
|
|
// TODO(henrik.lundin) Delete.
|
2013-01-29 12:09:21 +00:00
|
|
|
virtual NetEqPlayoutMode PlayoutMode() const = 0;
|
|
|
|
|
|
|
|
|
|
// Writes the current network statistics to |stats|. The statistics are reset
|
|
|
|
|
// after the call.
|
|
|
|
|
virtual int NetworkStatistics(NetEqNetworkStatistics* stats) = 0;
|
|
|
|
|
|
|
|
|
|
// Writes the current RTCP statistics to |stats|. The statistics are reset
|
|
|
|
|
// and a new report period is started with the call.
|
|
|
|
|
virtual void GetRtcpStatistics(RtcpStatistics* stats) = 0;
|
|
|
|
|
|
|
|
|
|
// Same as RtcpStatistics(), but does not reset anything.
|
|
|
|
|
virtual void GetRtcpStatisticsNoReset(RtcpStatistics* stats) = 0;
|
|
|
|
|
|
|
|
|
|
// Enables post-decode VAD. When enabled, GetAudio() will return
|
|
|
|
|
// kOutputVADPassive when the signal contains no speech.
|
|
|
|
|
virtual void EnableVad() = 0;
|
|
|
|
|
|
|
|
|
|
// Disables post-decode VAD.
|
|
|
|
|
virtual void DisableVad() = 0;
|
|
|
|
|
|
2016-04-06 01:39:22 -07:00
|
|
|
// Returns the RTP timestamp for the last sample delivered by GetAudio().
|
|
|
|
|
// The return value will be empty if no valid timestamp is available.
|
2016-04-06 08:38:56 -07:00
|
|
|
virtual rtc::Optional<uint32_t> GetPlayoutTimestamp() const = 0;
|
2013-01-29 12:09:21 +00:00
|
|
|
|
2015-11-23 06:49:25 -08:00
|
|
|
// Returns the sample rate in Hz of the audio produced in the last GetAudio
|
|
|
|
|
// call. If GetAudio has not been called yet, the configured sample rate
|
|
|
|
|
// (Config::sample_rate_hz) is returned.
|
|
|
|
|
virtual int last_output_sample_rate_hz() const = 0;
|
|
|
|
|
|
2016-09-20 03:07:46 -07:00
|
|
|
// 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;
|
|
|
|
|
|
2013-01-29 12:09:21 +00:00
|
|
|
// Not implemented.
|
|
|
|
|
virtual int SetTargetNumberOfChannels() = 0;
|
|
|
|
|
|
|
|
|
|
// Not implemented.
|
|
|
|
|
virtual int SetTargetSampleRate() = 0;
|
|
|
|
|
|
|
|
|
|
// Returns the error code for the last occurred error. If no error has
|
|
|
|
|
// occurred, 0 is returned.
|
2014-11-04 08:53:10 +00:00
|
|
|
virtual int LastError() const = 0;
|
2013-01-29 12:09:21 +00:00
|
|
|
|
|
|
|
|
// Returns the error code last returned by a decoder (audio or comfort noise).
|
|
|
|
|
// When LastError() returns kDecoderErrorCode or kComfortNoiseErrorCode, check
|
|
|
|
|
// this method to get the decoder's error code.
|
|
|
|
|
virtual int LastDecoderError() = 0;
|
|
|
|
|
|
|
|
|
|
// Flushes both the packet buffer and the sync buffer.
|
|
|
|
|
virtual void FlushBuffers() = 0;
|
|
|
|
|
|
2013-08-02 18:07:13 +00:00
|
|
|
// Current usage of packet-buffer and it's limits.
|
|
|
|
|
virtual void PacketBufferStatistics(int* current_num_packets,
|
2014-04-28 08:20:04 +00:00
|
|
|
int* max_num_packets) const = 0;
|
2013-08-02 18:07:13 +00:00
|
|
|
|
2015-10-29 05:36:24 -07:00
|
|
|
// Enables NACK and sets the maximum size of the NACK list, which should be
|
|
|
|
|
// positive and no larger than Nack::kNackListSizeLimit. If NACK is already
|
|
|
|
|
// enabled then the maximum NACK list size is modified accordingly.
|
|
|
|
|
virtual void EnableNack(size_t max_nack_list_size) = 0;
|
|
|
|
|
|
|
|
|
|
virtual void DisableNack() = 0;
|
|
|
|
|
|
|
|
|
|
// Returns a list of RTP sequence numbers corresponding to packets to be
|
|
|
|
|
// retransmitted, given an estimate of the round-trip time in milliseconds.
|
|
|
|
|
virtual std::vector<uint16_t> GetNackList(
|
|
|
|
|
int64_t round_trip_time_ms) const = 0;
|
2013-08-29 00:58:14 +00:00
|
|
|
|
2013-01-29 12:09:21 +00:00
|
|
|
protected:
|
|
|
|
|
NetEq() {}
|
|
|
|
|
|
|
|
|
|
private:
|
2015-09-16 05:37:44 -07:00
|
|
|
RTC_DISALLOW_COPY_AND_ASSIGN(NetEq);
|
2013-01-29 12:09:21 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
|
|
} // namespace webrtc
|
2015-10-29 11:31:02 +01:00
|
|
|
#endif // WEBRTC_MODULES_AUDIO_CODING_NETEQ_INCLUDE_NETEQ_H_
|