Discord Player

VolumeTransformer

No description provided

VolumeTransformer extends PCMTransformer

new VolumeTransformer(options);
ParameterTypeOptional
optionsVolumeTransformerOptions

Properties

public bits: any

public bytes: any

public disabled: any

public extremum: any

public onUpdate: any

public sampleRate: any

public type: any

public volume: any

public volumeApprox: 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 setSampleRate(rate): void

ParameterTypeOptional
ratenumber

public setVolume(volume): boolean

ParameterTypeOptional
volumenumber

public toString(): string

public toggle(): void