Replace some AL_PRINT calls with proper logging
This commit is contained in:
parent
72cd670636
commit
7bedd9ef7a
@ -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;
|
||||
}
|
||||
|
||||
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user