Fix some types

This commit is contained in:
Chris Robinson
2014-02-07 03:20:27 -08:00
parent 926ecc2dbe
commit 6f711c32ba
2 changed files with 4 additions and 4 deletions
+2 -2
View File
@@ -59,7 +59,7 @@ static ALvoid ALautowahState_Destruct(ALautowahState *UNUSED(state))
static ALboolean ALautowahState_deviceUpdate(ALautowahState *state, ALCdevice *device)
{
state->Frequency = device->Frequency;
state->Frequency = (ALfloat)device->Frequency;
return AL_TRUE;
}
@@ -100,7 +100,7 @@ static ALvoid ALautowahState_process(ALautowahState *state, ALuint SamplesToDo,
/* Similar to compressor, we get the current amplitude of the
* incoming signal, and attack or release to reach it. */
amplitude = fabs(smp);
amplitude = fabsf(smp);
if(amplitude > gain)
gain = minf(gain+state->AttackRate, amplitude);
else if(amplitude < gain)
+2 -2
View File
@@ -84,12 +84,12 @@ static ALvoid ALcompressorState_process(ALcompressorState *state, ALuint Samples
{
smp = SamplesIn[it+base];
amplitude = fabs(smp);
amplitude = fabsf(smp);
if(amplitude > gain)
gain = minf(gain+state->AttackRate, amplitude);
else if(amplitude < gain)
gain = maxf(gain-state->ReleaseRate, amplitude);
output = 1.0 / clampf(gain, 0.5f, 2.0f);
output = 1.0f / clampf(gain, 0.5f, 2.0f);
temps[it] = smp * output;
}