set neutral frequency when switching filter type
parent
34aa069d6b
commit
f9628f12c7
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue