feat(android): add `input_preset` to `StreamConfig`
Users can enable AEC (Acoustic Echo Canceler) via setting VOICE_COMMUNICATION for recording audio on Android (refer to here), which is a powerful and important feature for developing Android applications. However, I find no ways to enable this feature in cpal at present. So I add it here.
Looking at the Github Actions results, it seems you left out some platform specific flags. Unfortunately, I can't edit your code, but it may be best to ensure this doesn't fail other systems.
Take a look at this:
MacOS: error[E0433]: failed to resolve: use of unresolved module or unlinked crate "ndk"
Would it be possible to go back and prevent other platforms from attempting to use this code, or fix the cross-platform issues?
Looking at the Github Actions results, it seems you left out some platform specific flags. Unfortunately, I can't edit your code, but it may be best to ensure this doesn't fail other systems.
Take a look at this:
MacOS:
error[E0433]: failed to resolve: use of unresolved module or unlinked crate "ndk"Would it be possible to go back and prevent other platforms from attempting to use this code, or fix the cross-platform issues?
All fixed.
This is a candidate for opt-in with #1010 together with the other audio input presets.