Mercurial > audlegacy
view audacious/debug.h @ 1090:09eb2c83097a trunk
[svn] Psychoaccoustics support (to disable, temporarily add -UPSYCHO to your CFLAGS.):
This commit brings psychoaccoustics support (as used in mp3surround decoders) to libmpgdec.
For example, we can now almost fully compensate for lack of bandwidth in ISO compliant MP3 encodings.
In addition, further inaccuracies with pitch and the lack of reverb feeling that some MP3s have are
detected and automatically compensated for.
author | nenolod |
---|---|
date | Sat, 20 May 2006 20:36:10 -0700 |
parents | cb178e5ad177 |
children |
line wrap: on
line source
#ifndef DEBUG_H #define DEBUG_H #include <glib.h> #ifdef NDEBUG /* void REQUIRE_LOCK(GMutex *m); */ # define REQUIRE_LOCK(m) /* void REQUIRE_STR_UTF8(const gchar *str); */ # define REQUIRE_STR_UTF8(str) /* void REQUIRE_STATIC_LOCK(GStaticMutex *m); */ # define REQUIRE_STATIC_LOCK(m) #else /* !NDEBUG */ /* void REQUIRE_LOCK(GMutex *m); */ # define REQUIRE_LOCK(m) G_STMT_START { \ if (g_mutex_trylock(m)) { \ g_critical(G_STRLOC ": Mutex not locked!"); \ g_mutex_unlock(m); \ } \ } G_STMT_END /* void REQUIRE_STATIC_LOCK(GStaticMutex *m); */ # define REQUIRE_STATIC_LOCK(m) G_STMT_START { \ if (G_TRYLOCK(m)) { \ g_critical(G_STRLOC ": Mutex not locked!"); \ G_UNLOCK(m); \ } \ } G_STMT_END /* void REQUIRE_STR_UTF8(const gchar *str); */ # define REQUIRE_STR_UTF8(str) G_STMT_START { \ if (!g_utf_validate(str, -1, NULL)) \ g_warning(G_STRLOC ": String is not UTF-8!"); \ } G_STMT_END #endif /* NDEBUG */ #endif