43 lines
1.8 KiB
TypeScript
43 lines
1.8 KiB
TypeScript
export default LateReflections;
|
|
/**
|
|
* @class LateReflections
|
|
* @description Late-reflections reverberation filter for Ambisonic content.
|
|
* @param {AudioContext} context
|
|
* Associated {@link
|
|
https://developer.mozilla.org/en-US/docs/Web/API/AudioContext AudioContext}.
|
|
* @param {Object} options
|
|
* @param {Array} options.durations
|
|
* Multiband RT60 durations (in seconds) for each frequency band, listed as
|
|
* {@linkcode Utils.DEFAULT_REVERB_FREQUENCY_BANDS
|
|
* FREQUDEFAULT_REVERB_FREQUENCY_BANDSENCY_BANDS}. Defaults to
|
|
* {@linkcode Utils.DEFAULT_REVERB_DURATIONS DEFAULT_REVERB_DURATIONS}.
|
|
* @param {Number} options.predelay Pre-delay (in milliseconds). Defaults to
|
|
* {@linkcode Utils.DEFAULT_REVERB_PREDELAY DEFAULT_REVERB_PREDELAY}.
|
|
* @param {Number} options.gain Output gain (linear). Defaults to
|
|
* {@linkcode Utils.DEFAULT_REVERB_GAIN DEFAULT_REVERB_GAIN}.
|
|
* @param {Number} options.bandwidth Bandwidth (in octaves) for each frequency
|
|
* band. Defaults to
|
|
* {@linkcode Utils.DEFAULT_REVERB_BANDWIDTH DEFAULT_REVERB_BANDWIDTH}.
|
|
* @param {Number} options.tailonset Length (in milliseconds) of impulse
|
|
* response to apply a half-Hann window. Defaults to
|
|
* {@linkcode Utils.DEFAULT_REVERB_TAIL_ONSET DEFAULT_REVERB_TAIL_ONSET}.
|
|
*/
|
|
declare class LateReflections {
|
|
constructor(context: any, options: any);
|
|
_bandwidthCoeff: number;
|
|
_tailonsetSamples: number;
|
|
_context: any;
|
|
input: any;
|
|
_predelay: any;
|
|
_convolver: any;
|
|
output: any;
|
|
/**
|
|
* Re-compute a new impulse response by providing Multiband RT60 durations.
|
|
* @param {Array} durations
|
|
* Multiband RT60 durations (in seconds) for each frequency band, listed as
|
|
* {@linkcode Utils.DEFAULT_REVERB_FREQUENCY_BANDS
|
|
* DEFAULT_REVERB_FREQUENCY_BANDS}.
|
|
*/
|
|
setDurations(durations: any[]): void;
|
|
}
|