PCMResampler
No description provided
PCMResampler extends PCMTransformer
Parameter | Type | Optional |
---|---|---|
options | PCMResamplerOptions | ✅ |
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
public _transform(chunk, _, cb): void
Parameter | Type | Optional |
---|---|---|
chunk | Buffer | ❌ |
_ | BufferEncoding | ❌ |
cb | 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 setTargetSampleRate(rate): boolean
Parameter | Type | Optional |
---|---|---|
rate | number'NIGHTCORE''VAPORWAVE' | ❌ |