Skip to content

Commit

Permalink
Bug 1845499 - Reapply in-tree patch on cubeb_aaudio.cpp. r=cubeb-revi…
Browse files Browse the repository at this point in the history
…ewers,kinetik

Depends on D184568

Differential Revision: https://phabricator.services.mozilla.com/D184569
  • Loading branch information
padenot committed Jul 27, 2023
1 parent 6fc835a commit 5a12f41
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions media/libcubeb/src/cubeb_aaudio.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand Down Expand Up @@ -1705,6 +1706,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
Expand Down

0 comments on commit 5a12f41

Please sign in to comment.