From 60409562557204adcb67df7d9cdbf5bae3d5c179 Mon Sep 17 00:00:00 2001 From: David Reid Date: Wed, 14 Jul 2021 17:26:30 +1000 Subject: [PATCH] Fix an error where ma_log_level_to_string() is sometimes not compiled. This was happening because ma_log_level_to_string() was only being included when MA_DEBUG_OUTPUT is enabled. --- miniaudio.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/miniaudio.h b/miniaudio.h index 4e2bb8ee..83f7621b 100644 --- a/miniaudio.h +++ b/miniaudio.h @@ -8477,8 +8477,6 @@ static ma_result ma_allocation_callbacks_init_copy(ma_allocation_callbacks* pDst Logging **************************************************************************************************************************************************************/ -#if defined(MA_DEBUG_OUTPUT) - MA_API const char* ma_log_level_to_string(ma_uint32 logLevel) { switch (logLevel) @@ -8491,6 +8489,8 @@ MA_API const char* ma_log_level_to_string(ma_uint32 logLevel) } } +#if defined(MA_DEBUG_OUTPUT) + /* Customize this to use a specific tag in __android_log_print() for debug output messages. */ #ifndef MA_ANDROID_LOG_TAG #define MA_ANDROID_LOG_TAG "miniaudio"