From 20b9b9c533fb2c5a190f96205e521bbcd6e8b4bb Mon Sep 17 00:00:00 2001 From: David Reid Date: Tue, 22 Jul 2025 07:53:11 +1000 Subject: [PATCH] Android: Remove `enableCompatibilityWorkarounds` config options. --- miniaudio.h | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/miniaudio.h b/miniaudio.h index bbf4ffcc..e781c8ec 100644 --- a/miniaudio.h +++ b/miniaudio.h @@ -7006,7 +7006,6 @@ typedef struct ma_device_config_aaudio ma_aaudio_allowed_capture_policy allowedCapturePolicy; ma_aaudio_performance_mode performanceMode; ma_bool32 noAutoStartAfterReroute; - ma_bool32 enableCompatibilityWorkarounds; ma_bool32 allowSetBufferCapacity; } ma_device_config_aaudio; @@ -7054,7 +7053,6 @@ typedef struct ma_device_config_opensl { ma_opensl_stream_type streamType; ma_opensl_recording_preset recordingPreset; - ma_bool32 enableCompatibilityWorkarounds; } ma_device_config_opensl; MA_API ma_device_config_opensl ma_device_config_opensl_init(void); @@ -40244,7 +40242,7 @@ static ma_result ma_create_and_configure_AAudioStreamBuilder__aaudio(ma_context* can still be set if it's explicitly requested via the aaudio.allowSetBufferCapacity variable in the device config. */ - if ((!pDeviceConfigAAudio->enableCompatibilityWorkarounds || ma_android_sdk_version() > 30) && pDeviceConfigAAudio->allowSetBufferCapacity) { + if (pDeviceConfigAAudio->allowSetBufferCapacity) { /* AAudio is annoying when it comes to its buffer calculation stuff because it doesn't let you retrieve the actual sample rate until after you've opened the stream. But you need to configure