Discord Player

MonoStereoTransformer

No description provided

MonoStereoTransformer extends PCMTransformer

new MonoStereoTransformer(options);
ParameterTypeOptional
optionsMonoStereoTransformerOptions

Properties

public bits: any

public bytes: any

public disabled: any

public extremum: any

public sampleRate: any

public strategy: any

public type: 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 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 setStrategy(strategy): void

ParameterTypeOptional
strategyMSTStrategy

public toMono(sample, len): Buffer

ParameterTypeOptional
sampleBuffer
lennumber

public toStereo(sample, len): Buffer

ParameterTypeOptional
sampleBuffer
lennumber

public toggle(): void