bump miniaudio to fix playback on recent macos (#382)

This commit is contained in:
Dethrace Engineering Department 2024-07-05 12:53:41 +12:00 committed by GitHub
parent 68360350e5
commit f9346d8b59
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 16489 additions and 14626 deletions

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

View File

@ -1,6 +1,9 @@
// Disable miniaudio's 'null' device fallback. A proper device must be found to enable playback
#define MA_NO_NULL
#include "backend.h" #include "backend.h"
#include "harness/config.h" #include "harness/config.h"
#include "harness/trace.h"
#include "miniaudio/miniaudio.h" #include "miniaudio/miniaudio.h"
#include "resource.h" #include "resource.h"
#include "s3_defs.h" #include "s3_defs.h"
@ -14,7 +17,6 @@ typedef struct tS3_sample_struct_miniaudio {
int initialized; int initialized;
} tS3_sample_struct_miniaudio; } tS3_sample_struct_miniaudio;
// dethrace
ma_engine miniaudio_engine; ma_engine miniaudio_engine;
tAudioBackend_error_code AudioBackend_Init(void) { tAudioBackend_error_code AudioBackend_Init(void) {
@ -27,7 +29,7 @@ tAudioBackend_error_code AudioBackend_Init(void) {
printf("Failed to initialize audio engine."); printf("Failed to initialize audio engine.");
return eAB_error; return eAB_error;
} }
LOG_INFO("Playback device: '%s'", miniaudio_engine.pDevice->playback.name);
ma_engine_set_volume(&miniaudio_engine, harness_game_config.volume_multiplier); ma_engine_set_volume(&miniaudio_engine, harness_game_config.volume_multiplier);
return eAB_success; return eAB_success;
} }