|Modifier and Type||Method and Description|
Returns an AudioInputStream that supplies the filtered audio signal.
public static AudioInputStream getAudioInputStream(AudioInputStream in, FilterPassType filterPassType, FilterCharacteristicsType filterCharacteristicsType, int filterOrder, double ripple, double fcf1, double fcf2)
in- The input AudioInputStream.
filterPassType- The filter pass type (lowpass, highpass, bandpass or bandstop).
filterCharacteristicsType- The filter characteristics type. The following filters are implemented: Butterworth, Chebyshev (type 1), Bessel.
filterOrder- The filter order.
ripple- Passband ripple in dB. Must be negative. Only used for Chebyshev filter, ignored for other filters.
fcf1- The filter cutoff frequency in Hz for lowpass / highpass, lower cutoff frequency in Hz for bandpass / bandstop.
fcf2- The upper cutoff frequency in Hz for bandpass / bandstop, ignored for lowpass / highpass.