Skip to content

Commit

Permalink
Update Webrtc to new AudioProcessing API.
Browse files Browse the repository at this point in the history
webrtc::PostProcessor changed to webrtc::CustomProcessor and one APM
factory method has been deprecated.

The APM API changed in this cl: https://webrtc-review.googlesource.com/c/src/+/29201

[email protected], [email protected]

Bug: webrtc:8665
Change-Id: I76dfc7831575d4dfce7e60cbe22007bd2a50e946
Reviewed-on: https://webrtc-review.googlesource.com/34381
Reviewed-by: Alex Loiko <[email protected]>
Reviewed-by: Henrik Lundin <[email protected]>
Commit-Queue: Alex Loiko <[email protected]>
Cr-Commit-Position: refs/heads/master@{#21451}
  • Loading branch information
Alex Loiko authored and Commit Bot committed Dec 27, 2017
1 parent 144d055 commit 97cb448
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
5 changes: 3 additions & 2 deletions sdk/android/src/jni/pc/defaultaudioprocessingfactory.cc
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,11 @@ static jlong JNI_DefaultAudioProcessingFactory_CreateAudioProcessing(
JNIEnv*,
const JavaParamRef<jclass>&,
jlong native_post_processor) {
std::unique_ptr<PostProcessing> post_processor(
reinterpret_cast<PostProcessing*>(native_post_processor));
std::unique_ptr<CustomProcessing> post_processor(
reinterpret_cast<CustomProcessing*>(native_post_processor));
rtc::scoped_refptr<AudioProcessing> audio_processing =
AudioProcessing::Create(webrtc::Config(), std::move(post_processor),
nullptr /* render_pre_processing */,
nullptr /* echo_control_factory */,
nullptr /* beamformer */);
return jlongFromPointer(audio_processing.release());
Expand Down
2 changes: 1 addition & 1 deletion test/fuzzers/audio_processing_fuzzer_configs.cc
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ std::unique_ptr<AudioProcessing> CreateAPM(const uint8_t** data,
config.Set<Intelligibility>(new Intelligibility(*ie));

std::unique_ptr<AudioProcessing> apm(AudioProcessing::Create(
config, nullptr, std::move(echo_control_factory), nullptr));
config, nullptr, nullptr, std::move(echo_control_factory), nullptr));

webrtc::AudioProcessing::Config apm_config;
apm_config.residual_echo_detector.enabled = *red;
Expand Down

0 comments on commit 97cb448

Please sign in to comment.