mirror of
https://github.com/mackron/miniaudio.git
synced 2026-04-22 00:06:59 +02:00
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:
+2
-2
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user