Replace some AL_PRINT calls with proper logging

This commit is contained in:
Chris Robinson 2011-07-10 22:32:44 -07:00
parent 72cd670636
commit 7bedd9ef7a
2 changed files with 5 additions and 5 deletions

View File

@ -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;
}

View File

@ -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;
}
}