Bug 1860423 - Reapply patches on top of libcubeb. r=cubeb-reviewers,kinetik

Differential Revision: https://phabricator.services.mozilla.com/D191726
This commit is contained in:
Paul Adenot 2023-10-27 09:53:02 +00:00
Родитель 6e86a4942e
Коммит 1cc58bbb5e
1 изменённых файлов: 4 добавлений и 0 удалений

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

@ -11,6 +11,7 @@
#include "cubeb_resampler.h"
#include "cubeb_triple_buffer.h"
#include <aaudio/AAudio.h>
#include <android/api-level.h>
#include <atomic>
#include <cassert>
#include <chrono>
@ -1708,6 +1709,9 @@ const static struct cubeb_ops aaudio_ops = {
extern "C" /*static*/ int
aaudio_init(cubeb ** context, char const * /* context_name */)
{
if (android_get_device_api_level() <= 30) {
return CUBEB_ERROR;
}
// load api
void * libaaudio = nullptr;
#ifndef DISABLE_LIBAAUDIO_DLOPEN