Revert r9359 "Implement NetEq's CurrentDelay function"

This reverts commit d8a03facf6986a011c8f889c63d87f9216a1e912, since it
broke the Chrome build. Will have to swap to using base/logging.h in
neteq_impl.cc before re-landing this change.

TBR=kwiberg@webrtc.org

Review URL: https://webrtc-codereview.appspot.com/50219004

Cr-Commit-Position: refs/heads/master@{#9360}
This commit is contained in:
Henrik Lundin
2015-06-03 12:58:46 +02:00
parent d8a03facf6
commit 5abd3e1f98
5 changed files with 5 additions and 22 deletions

View File

@ -15,7 +15,6 @@
#include <algorithm>
#include "webrtc/base/checks.h"
#include "webrtc/common_audio/signal_processing/include/signal_processing_library.h"
#include "webrtc/modules/audio_coding/codecs/audio_decoder.h"
#include "webrtc/modules/audio_coding/neteq/accelerate.h"
@ -292,19 +291,8 @@ int NetEqImpl::TargetDelay() {
return kNotImplemented;
}
int NetEqImpl::CurrentDelayMs() const {
CriticalSectionScoped lock(crit_sect_.get());
if (fs_hz_ == 0)
return 0;
// Sum up the samples in the packet buffer with the future length of the sync
// buffer, and divide the sum by the sample rate.
const int delay_samples =
packet_buffer_->NumSamplesInBuffer(decoder_database_.get(),
decoder_frame_length_) +
static_cast<int>(sync_buffer_->FutureLength());
// The division below will truncate.
const int delay_ms = delay_samples / rtc::CheckedDivExact(fs_hz_, 1000);
return delay_ms;
int NetEqImpl::CurrentDelay() {
return kNotImplemented;
}
// Deprecated.