Add a log handler for libasound
This commit is contained in:
parent
ff7e6aa533
commit
1849601d56
12
src/logger.c
12
src/logger.c
|
@ -181,6 +181,18 @@ logger_libevent(int severity, const char *msg)
|
|||
DPRINTF(severity, L_EVENT, "%s\n", msg);
|
||||
}
|
||||
|
||||
#ifdef LAUDIO_USE_ALSA
|
||||
void
|
||||
logger_alsa(const char *file, int line, const char *function, int err, const char *fmt, ...)
|
||||
{
|
||||
va_list ap;
|
||||
|
||||
va_start(ap, fmt);
|
||||
vlogger(E_LOG, L_LAUDIO, fmt, ap);
|
||||
va_end(ap);
|
||||
}
|
||||
#endif /* LAUDIO_USE_ALSA */
|
||||
|
||||
void
|
||||
logger_reinit(void)
|
||||
{
|
||||
|
|
|
@ -48,6 +48,11 @@ logger_ffmpeg(void *ptr, int level, const char *fmt, va_list ap);
|
|||
void
|
||||
logger_libevent(int severity, const char *msg);
|
||||
|
||||
#ifdef LAUDIO_USE_ALSA
|
||||
void
|
||||
logger_alsa(const char *file, int line, const char *function, int err, const char *fmt, ...);
|
||||
#endif
|
||||
|
||||
void
|
||||
logger_reinit(void);
|
||||
|
||||
|
|
Loading…
Reference in New Issue