aboutsummaryrefslogtreecommitdiffstats
path: root/Alc/ALc.c
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2007-11-30 00:28:34 -0800
committerChris Robinson <[email protected]>2007-11-30 00:28:34 -0800
commitab34e7c613aad78e193ba6f8a4d5631f1ba6a613 (patch)
treeb50af3eed21b778be4599f5cd90b4c96ffb2616c /Alc/ALc.c
parentaea161d98774d1281df02ae6231348890c5a0f3f (diff)
Use an AL_PRINT macro for printing lib messages/errors to the console
Diffstat (limited to 'Alc/ALc.c')
-rw-r--r--Alc/ALc.c9
1 files changed, 2 insertions, 7 deletions
diff --git a/Alc/ALc.c b/Alc/ALc.c
index 73e8bee5..2b1c4ba6 100644
--- a/Alc/ALc.c
+++ b/Alc/ALc.c
@@ -33,9 +33,7 @@
///////////////////////////////////////////////////////
// DEBUG INFORMATION
-#ifdef _DEBUG
- char szDebug[256];
-#endif
+char szDebug[256];
///////////////////////////////////////////////////////
@@ -346,10 +344,7 @@ static ALCvoid ExitContext(ALCcontext *pContext)
#ifdef _DEBUG
if (pContext->SourceCount>0)
- {
- sprintf(szDebug,"OpenAL32 : alcDestroyContext() %d Source(s) NOT deleted\n", pContext->SourceCount);
- OutputDebugString(szDebug);
- }
+ AL_PRINT("alcDestroyContext() %d Source(s) NOT deleted\n", pContext->SourceCount);
#endif
// Free all the Sources still remaining