Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(40)

Unified Diff: webrtc/media/engine/webrtcvoiceengine.cc

Issue 2778783002: AecDump interface (Closed)
Patch Set: Implemented most of Karl's suggestions. Created 3 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: webrtc/media/engine/webrtcvoiceengine.cc
diff --git a/webrtc/media/engine/webrtcvoiceengine.cc b/webrtc/media/engine/webrtcvoiceengine.cc
index 8fcda89962ee768153b9d6337a862309b7e67aab..774b0af0f689879220e19f8d3e3479b31d3ca8ec 100644
--- a/webrtc/media/engine/webrtcvoiceengine.cc
+++ b/webrtc/media/engine/webrtcvoiceengine.cc
@@ -999,7 +999,8 @@ bool WebRtcVoiceEngine::StartAecDump(rtc::PlatformFile file,
return false;
}
StopAecDump();
- if (apm()->StartDebugRecording(aec_dump_file_stream, max_size_bytes) !=
+ if (apm()->StartDebugRecording(aec_dump_file_stream, max_size_bytes,
the sun 2017/03/28 22:35:29 Could we get rid of these calls on the APM and jus
aleloi 2017/04/06 15:46:10 Sure! I've added a new APM::StartDebugRecording me
+ nullptr) !=
webrtc::AudioProcessing::kNoError) {
LOG_RTCERR0(StartDebugRecording);
fclose(aec_dump_file_stream);
@@ -1013,7 +1014,7 @@ void WebRtcVoiceEngine::StartAecDump(const std::string& filename) {
RTC_DCHECK(worker_thread_checker_.CalledOnValidThread());
if (!is_dumping_aec_) {
// Start dumping AEC when we are not dumping.
- if (apm()->StartDebugRecording(filename.c_str(), -1) !=
+ if (apm()->StartDebugRecording(filename.c_str(), -1, nullptr) !=
webrtc::AudioProcessing::kNoError) {
LOG_RTCERR1(StartDebugRecording, filename.c_str());
} else {
« no previous file with comments | « no previous file | webrtc/modules/audio_processing/BUILD.gn » ('j') | webrtc/modules/audio_processing/aec_dumper/BUILD.gn » ('J')

Powered by Google App Engine
This is Rietveld 408576698