Discord Player

PCMResampler

No description provided

PCMResampler extends PCMTransformer

new PCMResampler(options);
ParameterTypeOptional
optionsPCMResamplerOptions

Properties

public bits: any

public bytes: any

public disabled: any

public extremum: any

public sampleRate: any

public targetSampleRate: any

public type: any

public AF_NIGHTCORE: any

public AF_VAPORWAVE: any

Methods

public _readInt(buffer, index): number

ParameterTypeOptional
bufferBuffer
indexnumber

public _transform(chunk, _, cb): void

ParameterTypeOptional
chunkBuffer
_BufferEncoding
cbTransformCallback

public _writeInt(buffer, int, index): number

ParameterTypeOptional
bufferBuffer
intnumber
indexnumber

public clamp(val, max, min): number

ParameterTypeOptional
valnumber
maxnumber
minnumber

public disable(): void

public enable(): void

public onUpdate(): void

public setSampleRate(rate): void

ParameterTypeOptional
ratenumber

public setTargetSampleRate(rate): boolean

ParameterTypeOptional
ratenumber'NIGHTCORE''VAPORWAVE'

public toggle(): void