Discord Player

AudioFilter

No description provided

AudioFilter extends PCMTransformer

new AudioFilter(options);
ParameterTypeOptional
optionsPCMFiltererOptions

Properties

public bits: any

public bytes: any

public disabled: any

public extremum: any

public filters: any

public pulsatorConfig: any

public sampleRate: any

public targetSampleRate: any

public totalSamples: any

public tremoloConfig: any

public type: any

public vibratoConfig: any

public currentDuration: any

public currentSampleRate: any

public estimatedDuration: any

public pulsator: any

public tremolo: any

Methods

public _readInt(buffer, index): number

ParameterTypeOptional
bufferBuffer
indexnumber

public _transform(chunk, encoding, callback): void

ParameterTypeOptional
chunkBuffer
encodingBufferEncoding
callbackTransformCallback

public _writeInt(buffer, int, index): number

ParameterTypeOptional
bufferBuffer
intnumber
indexnumber

public applyFilters(byte, channel): number

ParameterTypeOptional
bytenumber
channelLR

public clamp(val, max, min): number

ParameterTypeOptional
valnumber
maxnumber
minnumber

public disable(): void

public enable(): void

public onUpdate(): void

public seek(duration): void

ParameterTypeOptional
durationnumber

public setFilters(filters): boolean

ParameterTypeOptional
filtersArray<'8D''Tremolo''Vibrato'>

public setPulsator(hz): void

ParameterTypeOptional
hznumber

public setSampleRate(rate): void

ParameterTypeOptional
ratenumber

public setTargetSampleRate(rate): void

ParameterTypeOptional
ratenumber

public setTremolo(__namedParameters): void

ParameterTypeOptional
__namedParametersPartial<AFTremoloConfig>

public setVibrato(__namedParameters): void

ParameterTypeOptional
__namedParametersPartial<AFTremoloConfig>

public toggle(): void