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

Unified Diff: webrtc/audio/audio_transport_proxy.cc

Issue 2961723004: Allow an external audio processing module to be used in WebRTC (Closed)
Patch Set: Moved creation of APMs from CreateVoiceEngines Created 3 years, 6 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
« no previous file with comments | « webrtc/audio/audio_transport_proxy.h ('k') | webrtc/call/audio_state.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webrtc/audio/audio_transport_proxy.cc
diff --git a/webrtc/audio/audio_transport_proxy.cc b/webrtc/audio/audio_transport_proxy.cc
index d6ce9397c71fdd2d597f36754aef0deb45f6b3fa..73b009154035ad61481396d91fa05671f5a5e9c9 100644
--- a/webrtc/audio/audio_transport_proxy.cc
+++ b/webrtc/audio/audio_transport_proxy.cc
@@ -34,11 +34,13 @@ int Resample(const AudioFrame& frame,
} // namespace
AudioTransportProxy::AudioTransportProxy(AudioTransport* voe_audio_transport,
- AudioProcessing* apm,
+ AudioProcessing* audio_processing,
AudioMixer* mixer)
- : voe_audio_transport_(voe_audio_transport), apm_(apm), mixer_(mixer) {
+ : voe_audio_transport_(voe_audio_transport),
+ audio_processing_(audio_processing),
+ mixer_(mixer) {
RTC_DCHECK(voe_audio_transport);
- RTC_DCHECK(apm);
+ RTC_DCHECK(audio_processing);
RTC_DCHECK(mixer);
}
@@ -85,7 +87,7 @@ int32_t AudioTransportProxy::NeedMorePlayData(const size_t nSamples,
*elapsed_time_ms = mixed_frame_.elapsed_time_ms_;
*ntp_time_ms = mixed_frame_.ntp_time_ms_;
- const auto error = apm_->ProcessReverseStream(&mixed_frame_);
+ const auto error = audio_processing_->ProcessReverseStream(&mixed_frame_);
RTC_DCHECK_EQ(error, AudioProcessing::kNoError);
nSamplesOut = Resample(mixed_frame_, samplesPerSec, &resampler_,
« no previous file with comments | « webrtc/audio/audio_transport_proxy.h ('k') | webrtc/call/audio_state.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698