aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2013-03-24 12:43:53 -0700
committerChris Robinson <[email protected]>2013-03-24 12:43:53 -0700
commit678ce4109c59a7b8de7f5dffbb303fc2dfcb5abb (patch)
treedeebdedeafd75715fea4483e5fba8caad9abf163
parentb313c881c0e60c89695d283ceffc54e3547bb63d (diff)
Reorder some switch cases
-rw-r--r--OpenAL32/alEffect.c66
1 files changed, 32 insertions, 34 deletions
diff --git a/OpenAL32/alEffect.c b/OpenAL32/alEffect.c
index 2739ad5e..b4fe8173 100644
--- a/OpenAL32/alEffect.c
+++ b/OpenAL32/alEffect.c
@@ -430,6 +430,22 @@ static void InitEffectParams(ALeffect *effect, ALenum type)
effect->GetParamf = reverb_GetParamf;
effect->GetParamfv = reverb_GetParamfv;
break;
+ case AL_EFFECT_CHORUS:
+ effect->Chorus.Waveform = AL_CHORUS_DEFAULT_WAVEFORM;
+ effect->Chorus.Phase = AL_CHORUS_DEFAULT_PHASE;
+ effect->Chorus.Rate = AL_CHORUS_MAX_RATE;
+ effect->Chorus.Depth = AL_CHORUS_DEFAULT_DEPTH;
+ effect->Chorus.Feedback = AL_CHORUS_DEFAULT_FEEDBACK;
+ effect->Chorus.Delay = AL_CHORUS_DEFAULT_DELAY;
+ effect->SetParami = chorus_SetParami;
+ effect->SetParamiv = chorus_SetParamiv;
+ effect->SetParamf = chorus_SetParamf;
+ effect->SetParamfv = chorus_SetParamfv;
+ effect->GetParami = chorus_GetParami;
+ effect->GetParamiv = chorus_GetParamiv;
+ effect->GetParamf = chorus_GetParamf;
+ effect->GetParamfv = chorus_GetParamfv;
+ break;
case AL_EFFECT_ECHO:
effect->Echo.Delay = AL_ECHO_DEFAULT_DELAY;
effect->Echo.LRDelay = AL_ECHO_DEFAULT_LRDELAY;
@@ -445,6 +461,22 @@ static void InitEffectParams(ALeffect *effect, ALenum type)
effect->GetParamf = echo_GetParamf;
effect->GetParamfv = echo_GetParamfv;
break;
+ case AL_EFFECT_FLANGER:
+ effect->Flanger.Waveform = AL_FLANGER_DEFAULT_WAVEFORM;
+ effect->Flanger.Phase = AL_FLANGER_DEFAULT_PHASE;
+ effect->Flanger.Rate = AL_FLANGER_MAX_RATE;
+ effect->Flanger.Depth = AL_FLANGER_DEFAULT_DEPTH;
+ effect->Flanger.Feedback = AL_FLANGER_DEFAULT_FEEDBACK;
+ effect->Flanger.Delay = AL_FLANGER_DEFAULT_DELAY;
+ effect->SetParami = flanger_SetParami;
+ effect->SetParamiv = flanger_SetParamiv;
+ effect->SetParamf = flanger_SetParamf;
+ effect->SetParamfv = flanger_SetParamfv;
+ effect->GetParami = flanger_GetParami;
+ effect->GetParamiv = flanger_GetParamiv;
+ effect->GetParamf = flanger_GetParamf;
+ effect->GetParamfv = flanger_GetParamfv;
+ break;
case AL_EFFECT_RING_MODULATOR:
effect->Modulator.Frequency = AL_RING_MODULATOR_DEFAULT_FREQUENCY;
effect->Modulator.HighPassCutoff = AL_RING_MODULATOR_DEFAULT_HIGHPASS_CUTOFF;
@@ -470,40 +502,6 @@ static void InitEffectParams(ALeffect *effect, ALenum type)
effect->GetParamf = ded_GetParamf;
effect->GetParamfv = ded_GetParamfv;
break;
- case AL_EFFECT_CHORUS:
- effect->Chorus.Waveform = AL_CHORUS_DEFAULT_WAVEFORM;
- effect->Chorus.Phase = AL_CHORUS_DEFAULT_PHASE;
- effect->Chorus.Rate = AL_CHORUS_MAX_RATE;
- effect->Chorus.Depth = AL_CHORUS_DEFAULT_DEPTH;
- effect->Chorus.Feedback = AL_CHORUS_DEFAULT_FEEDBACK;
- effect->Chorus.Delay = AL_CHORUS_DEFAULT_DELAY;
-
- effect->SetParami = chorus_SetParami;
- effect->SetParamiv = chorus_SetParamiv;
- effect->SetParamf = chorus_SetParamf;
- effect->SetParamfv = chorus_SetParamfv;
- effect->GetParami = chorus_GetParami;
- effect->GetParamiv = chorus_GetParamiv;
- effect->GetParamf = chorus_GetParamf;
- effect->GetParamfv = chorus_GetParamfv;
- break;
- case AL_EFFECT_FLANGER:
- effect->Flanger.Waveform = AL_FLANGER_DEFAULT_WAVEFORM;
- effect->Flanger.Phase = AL_FLANGER_DEFAULT_PHASE;
- effect->Flanger.Rate = AL_FLANGER_MAX_RATE;
- effect->Flanger.Depth = AL_FLANGER_DEFAULT_DEPTH;
- effect->Flanger.Feedback = AL_FLANGER_DEFAULT_FEEDBACK;
- effect->Flanger.Delay = AL_FLANGER_DEFAULT_DELAY;
-
- effect->SetParami = flanger_SetParami;
- effect->SetParamiv = flanger_SetParamiv;
- effect->SetParamf = flanger_SetParamf;
- effect->SetParamfv = flanger_SetParamfv;
- effect->GetParami = flanger_GetParami;
- effect->GetParamiv = flanger_GetParamiv;
- effect->GetParamf = flanger_GetParamf;
- effect->GetParamfv = flanger_GetParamfv;
- break;
default:
effect->SetParami = null_SetParami;
effect->SetParamiv = null_SetParamiv;