diff options
author | Chris Robinson <[email protected]> | 2023-12-22 22:21:33 -0800 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2023-12-22 22:21:33 -0800 |
commit | c253a4353227be00ecd7995b8c7443ebfcd6d5a9 (patch) | |
tree | c18d4564971c54c12db794030ae377a2bfe68656 /al/effects/echo.cpp | |
parent | a80efab1749615e7cc0301ca7515e7a28db93191 (diff) |
Avoid some template hackery for EAX effect type functions
Diffstat (limited to 'al/effects/echo.cpp')
-rw-r--r-- | al/effects/echo.cpp | 12 |
1 files changed, 4 insertions, 8 deletions
diff --git a/al/effects/echo.cpp b/al/effects/echo.cpp index 48aacef3..bfec6885 100644 --- a/al/effects/echo.cpp +++ b/al/effects/echo.cpp @@ -201,8 +201,7 @@ template<> throw Exception{message}; } -template<> -bool EchoCommitter::commit(const EaxEffectProps &props) +bool EaxEchoCommitter::commit(const EaxEffectProps &props) { if(props == mEaxProps) return false; @@ -219,8 +218,7 @@ bool EchoCommitter::commit(const EaxEffectProps &props) return true; } -template<> -void EchoCommitter::SetDefaults(EaxEffectProps &props) +void EaxEchoCommitter::SetDefaults(EaxEffectProps &props) { static constexpr EAXECHOPROPERTIES defprops{[] { @@ -235,8 +233,7 @@ void EchoCommitter::SetDefaults(EaxEffectProps &props) props = defprops; } -template<> -void EchoCommitter::Get(const EaxCall &call, const EaxEffectProps &props_) +void EaxEchoCommitter::Get(const EaxCall &call, const EaxEffectProps &props_) { auto &props = std::get<EAXECHOPROPERTIES>(props_); switch(call.get_property_id()) @@ -252,8 +249,7 @@ void EchoCommitter::Get(const EaxCall &call, const EaxEffectProps &props_) } } -template<> -void EchoCommitter::Set(const EaxCall &call, EaxEffectProps &props_) +void EaxEchoCommitter::Set(const EaxCall &call, EaxEffectProps &props_) { auto &props = std::get<EAXECHOPROPERTIES>(props_); switch(call.get_property_id()) |