зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1830060 - Reapply patch on top of vendored libcubeb. r=cubeb-reviewers,kinetik
Depends on D176530 Differential Revision: https://phabricator.services.mozilla.com/D176531
This commit is contained in:
Родитель
45df9ca377
Коммит
afc8589ea0
|
@ -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>
|
||||
|
@ -1605,6 +1606,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 = NULL;
|
||||
#ifndef DISABLE_LIBAAUDIO_DLOPEN
|
||||
|
|
Загрузка…
Ссылка в новой задаче