NetEq: Add functionality to assist with delay analysis and tooling
This CL adds a few methods to the NetEq API that will be used for
delay analysis and plotting.
BUG=webrtc:7467
Review-Url: https://codereview.webrtc.org/2839163002
Cr-Commit-Position: refs/heads/master@{#17889}
diff --git a/webrtc/modules/audio_coding/neteq/neteq_impl.h b/webrtc/modules/audio_coding/neteq/neteq_impl.h
index 863bfbb..8a789bc 100644
--- a/webrtc/modules/audio_coding/neteq/neteq_impl.h
+++ b/webrtc/modules/audio_coding/neteq/neteq_impl.h
@@ -139,7 +139,7 @@
int SetTargetDelay() override;
- int TargetDelay() override;
+ int TargetDelayMs() override;
int CurrentDelayMs() const override;
@@ -207,6 +207,10 @@
std::vector<uint16_t> GetNackList(int64_t round_trip_time_ms) const override;
+ std::vector<uint32_t> LastDecodedTimestamps() const override;
+
+ int SyncBufferSizeMs() const override;
+
// This accessor method is only intended for testing purposes.
const SyncBuffer* sync_buffer_for_test() const;
Operations last_operation_for_test() const;
@@ -414,6 +418,7 @@
AudioFrame::kVadPassive;
std::unique_ptr<TickTimer::Stopwatch> generated_noise_stopwatch_
GUARDED_BY(crit_sect_);
+ std::vector<uint32_t> last_decoded_timestamps_ GUARDED_BY(crit_sect_);
private:
RTC_DISALLOW_COPY_AND_ASSIGN(NetEqImpl);