set neutral frequency when switching filter type
parent
34aa069d6b
commit
f9628f12c7
|
@ -151,6 +151,7 @@ namespace MoonWorks.Audio
|
||||||
|
|
||||||
case FilterType.LowPass:
|
case FilterType.LowPass:
|
||||||
filterParameters.Type = FAudio.FAudioFilterType.FAudioLowPassFilter;
|
filterParameters.Type = FAudio.FAudioFilterType.FAudioLowPassFilter;
|
||||||
|
filterParameters.Frequency = 1f;
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case FilterType.BandPass:
|
case FilterType.BandPass:
|
||||||
|
@ -159,6 +160,7 @@ namespace MoonWorks.Audio
|
||||||
|
|
||||||
case FilterType.HighPass:
|
case FilterType.HighPass:
|
||||||
filterParameters.Type = FAudio.FAudioFilterType.FAudioHighPassFilter;
|
filterParameters.Type = FAudio.FAudioFilterType.FAudioHighPassFilter;
|
||||||
|
filterParameters.Frequency = 0f;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue