Hooked up RtcEventLog. It lives in Voice Engine and pointers are propagated to ACM and Call.
An option was added to voe_cmd_test to make a RtcEventLog dump. BUG=webrtc:4741 Review URL: https://codereview.webrtc.org/1267683002 Cr-Commit-Position: refs/heads/master@{#9901}
This commit is contained in:
@ -27,6 +27,7 @@
|
||||
#include "webrtc/system_wrappers/interface/rw_lock_wrapper.h"
|
||||
#include "webrtc/system_wrappers/interface/trace.h"
|
||||
#include "webrtc/typedefs.h"
|
||||
#include "webrtc/video/rtc_event_log.h"
|
||||
|
||||
namespace webrtc {
|
||||
|
||||
@ -146,7 +147,8 @@ AudioCodingModuleImpl::AudioCodingModuleImpl(
|
||||
first_frame_(true),
|
||||
callback_crit_sect_(CriticalSectionWrapper::CreateCriticalSection()),
|
||||
packetization_callback_(NULL),
|
||||
vad_callback_(NULL) {
|
||||
vad_callback_(NULL),
|
||||
event_log_(config.event_log) {
|
||||
if (InitializeReceiverSafe() < 0) {
|
||||
WEBRTC_TRACE(webrtc::kTraceError, webrtc::kTraceAudioCoding, id_,
|
||||
"Cannot initialize receiver");
|
||||
@ -680,6 +682,10 @@ int AudioCodingModuleImpl::PlayoutData10Ms(int desired_freq_hz,
|
||||
"PlayoutData failed, RecOut Failed");
|
||||
return -1;
|
||||
}
|
||||
{
|
||||
if (event_log_)
|
||||
event_log_->LogDebugEvent(RtcEventLog::DebugEvent::kAudioPlayout);
|
||||
}
|
||||
|
||||
audio_frame->id_ = id_;
|
||||
return 0;
|
||||
|
||||
@ -299,6 +299,8 @@ class AudioCodingModuleImpl final : public AudioCodingModule {
|
||||
AudioPacketizationCallback* packetization_callback_
|
||||
GUARDED_BY(callback_crit_sect_);
|
||||
ACMVADCallback* vad_callback_ GUARDED_BY(callback_crit_sect_);
|
||||
|
||||
RtcEventLog* const event_log_;
|
||||
};
|
||||
|
||||
} // namespace acm2
|
||||
|
||||
Reference in New Issue
Block a user