aboutsummaryrefslogtreecommitdiffstats
path: root/Alc
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2011-07-10 22:32:44 -0700
committerChris Robinson <[email protected]>2011-07-10 22:32:44 -0700
commit7bedd9ef7a62e705cee4995667ae7fcac54249b1 (patch)
treeda021bee7fc243c8edf991626ada5e86c0ebb6d1 /Alc
parent72cd6706368b1ec5ad6273e326d6abcecb3c55c0 (diff)
Replace some AL_PRINT calls with proper logging
Diffstat (limited to 'Alc')
-rw-r--r--Alc/hrtf.c6
-rw-r--r--Alc/panning.c4
2 files changed, 5 insertions, 5 deletions
diff --git a/Alc/hrtf.c b/Alc/hrtf.c
index 15b59763..4cc2de51 100644
--- a/Alc/hrtf.c
+++ b/Alc/hrtf.c
@@ -148,7 +148,7 @@ void InitHrtf(void)
{
f = fopen(str, "rb");
if(f == NULL)
- AL_PRINT("Could not open %s\n", str);
+ ERROR("Could not open %s\n", str);
}
if(f != NULL)
{
@@ -174,13 +174,13 @@ void InitHrtf(void)
newdata.delays[i] = val;
if(val > maxDelay)
{
- AL_PRINT("Invalid delay at idx %zu: %u (max: %u), in %s\n", i, val, maxDelay, str);
+ ERROR("Invalid delay at idx %zu: %u (max: %u), in %s\n", i, val, maxDelay, str);
failed = AL_TRUE;
}
}
if(feof(f))
{
- AL_PRINT("Premature end of data while reading %s\n", str);
+ ERROR("Premature end of data while reading %s\n", str);
failed = AL_TRUE;
}
diff --git a/Alc/panning.c b/Alc/panning.c
index c3459ec1..08183c94 100644
--- a/Alc/panning.c
+++ b/Alc/panning.c
@@ -89,7 +89,7 @@ static void SetSpeakerArrangement(const char *name, ALfloat SpeakerAngle[MAXCHAN
val = SIDE_RIGHT;
else
{
- AL_PRINT("Unknown speaker for %s: \"%s\"\n", name, confkey);
+ ERROR("Unknown speaker for %s: \"%s\"\n", name, confkey);
continue;
}
@@ -105,7 +105,7 @@ static void SetSpeakerArrangement(const char *name, ALfloat SpeakerAngle[MAXCHAN
if(angle >= -180 && angle <= 180)
SpeakerAngle[i] = angle * M_PI/180.0f;
else
- AL_PRINT("Invalid angle for speaker \"%s\": %ld\n", confkey, angle);
+ ERROR("Invalid angle for speaker \"%s\": %ld\n", confkey, angle);
break;
}
}