Commit 222166a7 authored by Andrea Gianarda's avatar Andrea Gianarda
Browse files

Ensure consistency between context and card capabilities

parent 5e72d52f
......@@ -308,8 +308,13 @@ static MSSndCard* android_snd_card_new(MSSndCardManager *m) {
d = ms_devices_info_get_sound_device_description(devices);
AAudioContext *context = aaudio_context_init();
if (d->flags & DEVICE_HAS_BUILTIN_AEC) card->capabilities |= MS_SND_CARD_CAP_BUILTIN_ECHO_CANCELLER;
context->builtin_aec = true;
if (d->flags & DEVICE_HAS_BUILTIN_AEC) {
card->capabilities |= MS_SND_CARD_CAP_BUILTIN_ECHO_CANCELLER;
context->builtin_aec = true;
} else {
context->builtin_aec = false;
}
card->latency = d->delay;
card->data = context;
if (d->recommended_rate){
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment