aboutsummaryrefslogtreecommitdiffstats
path: root/al/effects/reverb.cpp
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2022-06-19 08:06:16 -0700
committerChris Robinson <[email protected]>2022-06-19 08:06:16 -0700
commitd2a32e4375cb108837a281a007725623244b0719 (patch)
tree3ccdc33701beccb9fc48eece777fc6f4e04b1113 /al/effects/reverb.cpp
parentaf690871b13affba189362a59af7b941d7e4cea2 (diff)
Don't change the EAX version when getting a reverb property
Diffstat (limited to 'al/effects/reverb.cpp')
-rw-r--r--al/effects/reverb.cpp18
1 files changed, 7 insertions, 11 deletions
diff --git a/al/effects/reverb.cpp b/al/effects/reverb.cpp
index a0e62da9..07d6dfcf 100644
--- a/al/effects/reverb.cpp
+++ b/al/effects/reverb.cpp
@@ -1544,19 +1544,15 @@ void EaxReverbEffect::get3(const EaxCall& call, const Props3& props)
void EaxReverbEffect::get(const EaxCall& call)
{
- const auto version = call.get_version();
-
- switch (version)
+ switch(call.get_version())
{
- case 1: get1(call, state1_.i); break;
- case 2: get2(call, state2_.i); break;
- case 3: get3(call, state3_.i); break;
- case 4: get3(call, state4_.i); break;
- case 5: get3(call, state5_.i); break;
- default: fail_unknown_version();
+ case 1: get1(call, state1_.i); break;
+ case 2: get2(call, state2_.i); break;
+ case 3: get3(call, state3_.i); break;
+ case 4: get3(call, state4_.i); break;
+ case 5: get3(call, state5_.i); break;
+ default: fail_unknown_version();
}
-
- version_ = version;
}
/*[[nodiscard]]*/ bool EaxReverbEffect::commit()