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 322a86fe7c5786241f1a08193d27b5c18b8dc0a2..190f59eba4bc25f5e0928f74177ca3cf8fa4a13e 100644 |
--- a/webrtc/modules/audio_coding/neteq/include/neteq.h |
+++ b/webrtc/modules/audio_coding/neteq/include/neteq.h |
@@ -14,6 +14,7 @@ |
#include <string.h> // Provide access to size_t. |
#include <string> |
+#include <vector> |
#include "webrtc/base/constructormagic.h" |
#include "webrtc/base/optional.h" |
@@ -211,8 +212,9 @@ class NetEq { |
// Not implemented. |
virtual int SetTargetDelay() = 0; |
- // Not implemented. |
- virtual int TargetDelay() = 0; |
+ // Returns the current target delay in ms. This includes any extra delay |
+ // requested through SetMinimumDelay. |
+ virtual int TargetDelayMs() = 0; |
// Returns the current total delay (packet buffer and sync buffer) in ms. |
virtual int CurrentDelayMs() const = 0; |
@@ -302,6 +304,16 @@ class NetEq { |
virtual std::vector<uint16_t> GetNackList( |
int64_t round_trip_time_ms) const = 0; |
+ // Returns a vector containing the timestamps of the packets that were decoded |
+ // in the last GetAudio call. If no packets were decoded in the last call, the |
+ // vector is empty. |
+ // Mainly intended for testing. |
+ virtual std::vector<uint32_t> LastDecodedTimestamps() const = 0; |
+ |
+ // Returns the length of the audio yet to play in the sync buffer. |
+ // Mainly intended for testing. |
+ virtual size_t SyncBufferSizeMs() const = 0; |
AleBzk
2017/04/26 13:52:34
Picky question, only relevant if TargetDelayMs() r
hlundin-webrtc
2017/04/26 14:11:38
int is preferred. I changed it.
|
+ |
protected: |
NetEq() {} |