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.
This commit is contained in:
David Reid
2021-07-14 17:26:30 +10:00
parent 3a5bfa9f9b
commit 6040956255
+2 -2
View File
@@ -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"