diff options
author | Chris Robinson <[email protected]> | 2018-05-22 06:19:59 -0700 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2018-05-22 06:19:59 -0700 |
commit | 8219bb374df7412edb6359ddeb5f45fffafb47a2 (patch) | |
tree | 76e9d51b4111704b0c0fa32a90665ae0c5c29efd /Alc/effects | |
parent | 80df89d0db7805a5661a72b07dd3961b4f5aa836 (diff) |
Fix a couple property variable names
Diffstat (limited to 'Alc/effects')
-rw-r--r-- | Alc/effects/fshifter.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/Alc/effects/fshifter.c b/Alc/effects/fshifter.c index 2e1a6c45..fd229f3f 100644 --- a/Alc/effects/fshifter.c +++ b/Alc/effects/fshifter.c @@ -125,7 +125,7 @@ static ALvoid ALfshifterState_update(ALfshifterState *state, const ALCcontext *c state->frac_freq = props->Fshifter.Frequency/(ALdouble)device->Frequency; - switch(props->Fshifter.Left_direction) + switch(props->Fshifter.LeftDirection) { case AL_FREQUENCY_SHIFTER_DIRECTION_DOWN: state->ld_sign = -1.0; @@ -242,7 +242,7 @@ void ALfshifter_setParamf(ALeffect *effect, ALCcontext *context, ALenum param, A case AL_FREQUENCY_SHIFTER_FREQUENCY: if(!(val >= AL_FREQUENCY_SHIFTER_MIN_FREQUENCY && val <= AL_FREQUENCY_SHIFTER_MAX_FREQUENCY)) SETERR_RETURN(context, AL_INVALID_VALUE,,"Frequency shifter frequency out of range"); - props->Fshifter.Frequency = (ALfloat) val; + props->Fshifter.Frequency = val; break; default: @@ -263,13 +263,13 @@ void ALfshifter_setParami(ALeffect *effect, ALCcontext *context, ALenum param, A case AL_FREQUENCY_SHIFTER_LEFT_DIRECTION: if(!(val >= AL_FREQUENCY_SHIFTER_MIN_LEFT_DIRECTION && val <= AL_FREQUENCY_SHIFTER_MAX_LEFT_DIRECTION)) SETERR_RETURN(context, AL_INVALID_VALUE,,"Frequency shifter left direction out of range"); - props->Fshifter.Left_direction = val; + props->Fshifter.LeftDirection = val; break; case AL_FREQUENCY_SHIFTER_RIGHT_DIRECTION: if(!(val >= AL_FREQUENCY_SHIFTER_MIN_RIGHT_DIRECTION && val <= AL_FREQUENCY_SHIFTER_MAX_RIGHT_DIRECTION)) SETERR_RETURN(context, AL_INVALID_VALUE,,"Frequency shifter right direction out of range"); - props->Fshifter.Right_direction = val; + props->Fshifter.RightDirection = val; break; default: @@ -287,10 +287,10 @@ void ALfshifter_getParami(const ALeffect *effect, ALCcontext *context, ALenum pa switch(param) { case AL_FREQUENCY_SHIFTER_LEFT_DIRECTION: - *val = (ALint)props->Fshifter.Left_direction; + *val = props->Fshifter.LeftDirection; break; case AL_FREQUENCY_SHIFTER_RIGHT_DIRECTION: - *val = (ALint)props->Fshifter.Right_direction; + *val = props->Fshifter.RightDirection; break; default: alSetError(context, AL_INVALID_ENUM, "Invalid frequency shifter integer property 0x%04x", param); @@ -308,7 +308,7 @@ void ALfshifter_getParamf(const ALeffect *effect, ALCcontext *context, ALenum pa switch(param) { case AL_FREQUENCY_SHIFTER_FREQUENCY: - *val = (ALfloat)props->Fshifter.Frequency; + *val = props->Fshifter.Frequency; break; default: |