update OpenAL-Soft to 1.24.3.

This commit is contained in:
Sasha Szpakowski
2025-05-03 12:51:37 -03:00
parent 375c6f88cd
commit 5e4f3241ac
322 changed files with 54386 additions and 12885 deletions
+11 -9
View File
@@ -1,8 +1,9 @@
#ifndef CORE_LOGGING_H
#define CORE_LOGGING_H
#include <stdio.h>
#include <cstdio>
#include "fmt/core.h"
#include "opthelpers.h"
@@ -12,9 +13,9 @@ enum class LogLevel {
Warning,
Trace
};
extern LogLevel gLogLevel;
DECL_HIDDEN extern LogLevel gLogLevel;
extern FILE *gLogFile;
DECL_HIDDEN extern FILE *gLogFile;
using LogCallbackFunc = void(*)(void *userptr, char level, const char *message, int length) noexcept;
@@ -22,12 +23,13 @@ using LogCallbackFunc = void(*)(void *userptr, char level, const char *message,
void al_set_log_callback(LogCallbackFunc callback, void *userptr);
#ifdef __MINGW32__
[[gnu::format(__MINGW_PRINTF_FORMAT,2,3)]]
#else
[[gnu::format(printf,2,3)]]
#endif
void al_print(LogLevel level, const char *fmt, ...) noexcept;
void al_print_impl(LogLevel level, const fmt::string_view fmt, fmt::format_args args);
template<typename ...Args>
void al_print(LogLevel level, fmt::format_string<Args...> fmt, Args&& ...args) noexcept
try {
al_print_impl(level, fmt, fmt::make_format_args(args...));
} catch(...) { }
#define TRACE(...) al_print(LogLevel::Trace, __VA_ARGS__)