Return an error if failing to open a recorder and it's not a sample-rate not supported issue

This commit is contained in:
Paul Adenot 2023-10-23 10:21:58 +02:00
Родитель f1bfefbbd4
Коммит 464e61d5eb
1 изменённых файлов: 5 добавлений и 0 удалений

Просмотреть файл

@ -1056,6 +1056,11 @@ opensl_configure_capture(cubeb_stream * stm, cubeb_stream_params * params)
LOG("Failed to create recorder. Error code: %lu", res);
return CUBEB_ERROR;
}
} else {
LOG("Failed to create recorder, not trying other input"
" rate. Error code: %lu",
res);
return CUBEB_ERROR;
}
// It's always possible to use int16 regardless of the Android version.
// However if compiling for older Android version, it's possible to