forked from mirrors/gecko-dev
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:
parent
45df9ca377
commit
afc8589ea0
1 changed files with 4 additions and 0 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue