Bug 1863725 - Update libcubeb to revision d07ea5a. r=cubeb-reviewers,chunmin

Differential Revision: https://phabricator.services.mozilla.com/D193058
This commit is contained in:
Paul Adenot 2023-11-08 18:08:20 +00:00
Родитель ac19e2c0d7
Коммит d38af75a1f
4 изменённых файлов: 4 добавлений и 13 удалений

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

@ -9,8 +9,8 @@ origin:
description: "Cross platform audio library"
url: https://github.com/mozilla/cubeb
license: ISC
release: 5f0d17373b8913aaa583041857f086e8b54217bd (2023-10-26T09:43:35Z).
revision: 5f0d17373b8913aaa583041857f086e8b54217bd
release: d07ea5aa6641afc916784e9cc7d69d763b621f32 (2023-11-08T13:42:49Z).
revision: d07ea5aa6641afc916784e9cc7d69d763b621f32
vendoring:
url: https://github.com/mozilla/cubeb

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

@ -11,7 +11,6 @@
#include "cubeb_resampler.h"
#include "cubeb_triple_buffer.h"
#include <aaudio/AAudio.h>
#include <android/api-level.h>
#include <atomic>
#include <cassert>
#include <chrono>
@ -1709,9 +1708,6 @@ 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

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

@ -1051,12 +1051,8 @@ opensl_configure_capture(cubeb_stream * stm, cubeb_stream_params * params)
stm->context->eng, &stm->recorderObj, &dataSource,
&dataSink, NELEMS(lSoundRecorderIIDs),
lSoundRecorderIIDs, lSoundRecorderReqs);
if (res != SL_RESULT_SUCCESS) {
LOG("Failed to create recorder. Error code: %lu", res);
return CUBEB_ERROR;
}
} else {
}
if (res != SL_RESULT_SUCCESS) {
LOG("Failed to create recorder, not trying other input"
" rate. Error code: %lu",
res);

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

@ -50,7 +50,6 @@ long data_cb_duplex(cubeb_stream * stream, void * user, const void * inputbuffer
for (long i = 0; i < nframes; i++) {
if (ib[i] <= -1.0 || ib[i] >= 1.0) {
u->invalid_audio_value = 1;
break;
}
ob[output_index] = ob[output_index + 1] = ib[i];
output_index += 2;