set neutral frequency when switching filter type

pull/47/head
cosmonaut 2023-03-07 00:13:50 -08:00
parent 34aa069d6b
commit f9628f12c7
1 changed files with 2 additions and 0 deletions

View File

@ -151,6 +151,7 @@ namespace MoonWorks.Audio
case FilterType.LowPass:
filterParameters.Type = FAudio.FAudioFilterType.FAudioLowPassFilter;
filterParameters.Frequency = 1f;
break;
case FilterType.BandPass:
@ -159,6 +160,7 @@ namespace MoonWorks.Audio
case FilterType.HighPass:
filterParameters.Type = FAudio.FAudioFilterType.FAudioHighPassFilter;
filterParameters.Frequency = 0f;
break;
}