aboutsummaryrefslogtreecommitdiffstats
path: root/Alc/effects/autowah.c
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2014-02-07 03:20:27 -0800
committerChris Robinson <[email protected]>2014-02-07 03:20:27 -0800
commit6f711c32ba39c8c0b1fe712bb9c9b1361dd3ff40 (patch)
tree758bffc5074c15114426f2ebd1681bde10dcad1a /Alc/effects/autowah.c
parent926ecc2dbe4d3ab2493e210a388b2e2f1179383b (diff)
Fix some types
Diffstat (limited to 'Alc/effects/autowah.c')
-rw-r--r--Alc/effects/autowah.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/Alc/effects/autowah.c b/Alc/effects/autowah.c
index 9a45e233..e3f84b03 100644
--- a/Alc/effects/autowah.c
+++ b/Alc/effects/autowah.c
@@ -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)