Commit 1f6801b9 authored by Sylvain Berfini's avatar Sylvain Berfini 🎩
Browse files

Prepend device so it will be the prioritary one

parent a8debcd5
......@@ -41,6 +41,7 @@ extern "C" {
#endif
JNIEXPORT void JNICALL Java_org_linphone_mediastream_MediastreamerAndroidContext_setAAudioDeviceFavoriteSampleRate(JNIEnv* env, jclass thiz, jint samplerate) {
DeviceFavoriteSampleRate = (int)samplerate;
ms_message("[Device] Output sample rates: %i for AAudio MS sound card.", samplerate);
}
#ifdef __cplusplus
}
......@@ -158,7 +159,7 @@ static void android_snd_card_detect(MSSndCardManager *m) {
devices = ms_factory_get_devices_info(m->factory);
d = ms_devices_info_get_sound_device_description(devices);
MSSndCard *card = android_snd_card_new(m);
ms_snd_card_manager_add_card(m, card);
ms_snd_card_manager_prepend_card(m, card);
} else {
ms_warning("Failed to dlopen libAAudio, AAudio MS soundcard unavailable");
}
......@@ -657,4 +658,4 @@ MS_PLUGIN_DECLARE(void) libmsaaudio_init(MSFactory* factory) {
} else {
ms_warning("Failed to dlopen libAAudio, AAudio MS soundcard unavailable");
}
}
\ No newline at end of file
}
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