Skip to content

Commit

Permalink
check ios flag
Browse files Browse the repository at this point in the history
  • Loading branch information
karasusan committed Oct 10, 2023
1 parent ead849b commit 0272460
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions Plugin~/WebRTCPlugin/WebRTCPlugin.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -302,6 +302,12 @@ extern "C"
dst.auto_gain_control = static_cast<absl::optional<bool>>(autoGainControl);
dst.noise_suppression = static_cast<absl::optional<bool>>(noiseSuppression);
dst.highpass_filter = static_cast<absl::optional<bool>>(highpassFilter);
#if defined(WEBRTC_IOS)
if (dst.echo_cancellation && dst.echo_cancellation.value())
{
dst.ios_force_software_aec_HACK = true;
}
#endif
return dst;
}
};
Expand Down

0 comments on commit 0272460

Please sign in to comment.