Skip to content

Commit

Permalink
Snes9x - Add new audio filters (CUBIC/SINC) from Snes9x 1.61 (niuus, …
Browse files Browse the repository at this point in the history
…Tanooki16) (#1014)

* New audio filters (CUBIC/SINC) taken from Snes9x 1.61 (niuus, Tanooki16)

* New audio filters (CUBIC/SINC) taken from Snes9x 1.61 (niuus, Tanooki16)

* New audio filters (CUBIC/SINC) taken from Snes9x 1.61 (niuus, Tanooki16)

* New audio filters (CUBIC/SINC) taken from Snes9x 1.61 (niuus, Tanooki16)
  • Loading branch information
saulfabregwiivc authored Jun 3, 2022
1 parent 5f02354 commit 42c1e49
Show file tree
Hide file tree
Showing 4 changed files with 355 additions and 5 deletions.
10 changes: 8 additions & 2 deletions source/menu.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3790,14 +3790,16 @@ static int MenuSettingsAudio()
{
case 0:
GCSettings.Interpolation++;
if (GCSettings.Interpolation > 2) {
if (GCSettings.Interpolation > 4) {
GCSettings.Interpolation = 0;
}
switch(GCSettings.Interpolation)
{
case 0: Settings.InterpolationMethod = DSP_INTERPOLATION_GAUSSIAN; break;
case 1: Settings.InterpolationMethod = DSP_INTERPOLATION_LINEAR; break;
case 2: Settings.InterpolationMethod = DSP_INTERPOLATION_NONE; break;
case 2: Settings.InterpolationMethod = DSP_INTERPOLATION_CUBIC; break;
case 3: Settings.InterpolationMethod = DSP_INTERPOLATION_SINC; break;
case 4: Settings.InterpolationMethod = DSP_INTERPOLATION_NONE; break;
}
break;
S9xReset();
Expand All @@ -3814,6 +3816,10 @@ static int MenuSettingsAudio()
case 1:
sprintf (options.value[0], "Linear"); break;
case 2:
sprintf (options.value[0], "Cubic"); break;
case 3:
sprintf (options.value[0], "Sinc"); break;
case 4:
sprintf (options.value[0], "None"); break;
}
optionBrowser.TriggerUpdate();
Expand Down
Loading

0 comments on commit 42c1e49

Please sign in to comment.