Skip to content

Commit

Permalink
Bug 1853012 - Reapply patch on top of libcubeb. r=cubeb-reviewers,chu…
Browse files Browse the repository at this point in the history
…nmin

Depends on D188348

Differential Revision: https://phabricator.services.mozilla.com/D188349
  • Loading branch information
padenot committed Sep 15, 2023
1 parent 6b7e7a3 commit 7972055
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 @@ -1704,6 +1705,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 7972055

Please sign in to comment.