mirror of
https://github.com/libsdl-org/SDL.git
synced 2025-10-14 13:56:00 +00:00
alsa: Put debug logging back into correct category and logging level.
This commit is contained in:
@@ -31,15 +31,16 @@
|
|||||||
#define SDL_ALSA_HOTPLUG_THREAD 1
|
#define SDL_ALSA_HOTPLUG_THREAD 1
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
// this turns off debug logging completely (but by default this goes to the bitbucket).
|
||||||
|
#ifndef SDL_ALSA_DEBUG
|
||||||
|
#define SDL_ALSA_DEBUG 1
|
||||||
|
#endif
|
||||||
|
|
||||||
#include "../SDL_sysaudio.h"
|
#include "../SDL_sysaudio.h"
|
||||||
#include "SDL_alsa_audio.h"
|
#include "SDL_alsa_audio.h"
|
||||||
|
|
||||||
#ifndef SDL_ALSA_DEBUG
|
|
||||||
#define SDL_ALSA_DEBUG 0
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#if SDL_ALSA_DEBUG
|
#if SDL_ALSA_DEBUG
|
||||||
#define LOGDEBUG(...) SDL_Log("ALSA: " __VA_ARGS__)
|
#define LOGDEBUG(...) SDL_LogDebug(SDL_LOG_CATEGORY_AUDIO, "ALSA: " __VA_ARGS__)
|
||||||
#else
|
#else
|
||||||
#define LOGDEBUG(...)
|
#define LOGDEBUG(...)
|
||||||
#endif
|
#endif
|
||||||
|
Reference in New Issue
Block a user