VolumeTransformer
No description provided
VolumeTransformer extends PCMTransformer
Parameter | Type | Optional |
---|---|---|
options | VolumeTransformerOptions | ✅ |
Properties
public bits: any
public bytes: any
public disabled: any
public extremum: any
public sampleRate: any
public type: any
public volume: any
public volumeApprox: any
Methods
public _readInt(buffer, index): number
public _transform(chunk, encoding, callback): void
Parameter | Type | Optional |
---|---|---|
chunk | Buffer | ❌ |
encoding | BufferEncoding | ❌ |
callback | TransformCallback | ❌ |
public _writeInt(buffer, int, index): number
public clamp(val, max, min): number
public disable(): void
public enable(): void
public onUpdate(): void
public setSampleRate(rate): void
Parameter | Type | Optional |
---|---|---|
rate | number | ❌ |
public setVolume(volume): boolean
Parameter | Type | Optional |
---|---|---|
volume | number | ❌ |