Send absolute capture time through audio coding module.
Bug: webrtc:10739 Change-Id: I44e0305be7c84b253172511c2977b1d700e40c1b Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/167067 Reviewed-by: Oskar Sundbom <ossu@webrtc.org> Reviewed-by: Danil Chapovalov <danilchap@webrtc.org> Reviewed-by: Chen Xing <chxg@google.com> Commit-Queue: Minyue Li <minyue@webrtc.org> Cr-Commit-Position: refs/heads/master@{#30363}
This commit is contained in:
@ -44,7 +44,21 @@ class AudioPacketizationCallback {
|
||||
uint8_t payload_type,
|
||||
uint32_t timestamp,
|
||||
const uint8_t* payload_data,
|
||||
size_t payload_len_bytes) = 0;
|
||||
size_t payload_len_bytes,
|
||||
int64_t absolute_capture_timestamp_ms) {
|
||||
// TODO(bugs.webrtc.org/10739): Deprecate the old SendData and make this one
|
||||
// pure virtual.
|
||||
RTC_NOTREACHED() << "This method must be overridden, or not used.";
|
||||
return -1;
|
||||
}
|
||||
virtual int32_t SendData(AudioFrameType frame_type,
|
||||
uint8_t payload_type,
|
||||
uint32_t timestamp,
|
||||
const uint8_t* payload_data,
|
||||
size_t payload_len_bytes) {
|
||||
return SendData(frame_type, payload_type, timestamp, payload_data,
|
||||
payload_len_bytes, 0);
|
||||
}
|
||||
};
|
||||
|
||||
// Callback class used for reporting VAD decision
|
||||
|
Reference in New Issue
Block a user