Skip to content

Commit

Permalink
Redirect cubic to spline when loading alsoft.ini (#1018)
Browse files Browse the repository at this point in the history
* Redirect the old cubic ini option to spline, as that's the comparable type

* Fix tabbing

* Fix if statement spacing
  • Loading branch information
metallicafan212 authored Jul 10, 2024
1 parent 0134982 commit 71d3c81
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions core/voice.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -148,8 +148,13 @@ void Voice::InitMixer(std::optional<std::string> resopt)
};

std::string_view resampler{*resopt};
if(al::case_compare(resampler, "cubic"sv) == 0
|| al::case_compare(resampler, "sinc4"sv) == 0

if (al::case_compare(resampler, "cubic"sv) == 0)
{
WARN("Resampler option \"%s\" is deprecated, using spline\n", resopt->c_str());
resampler = "spline"sv;
}
else if(al::case_compare(resampler, "sinc4"sv) == 0
|| al::case_compare(resampler, "sinc8"sv) == 0)
{
WARN("Resampler option \"%s\" is deprecated, using gaussian\n", resopt->c_str());
Expand Down

0 comments on commit 71d3c81

Please sign in to comment.