The filter needs sufficient input before it can write output. Input shorter than filterWindow frames can produce no output. Empty input produces no output.
Check that the input contains raw PCM samples. Remove any WAV or other file header. Set inRate and inChannels to match the input data.
Check the input data and channel count. Mono input needs complete two-byte frames. Stereo input needs complete four-byte frames. Keep incomplete bytes between chunks. Remove an incomplete final frame or provide the missing bytes before the stream ends.
The filter waits for input before it writes output. It does not add output padding at stream end. Use the stream output length for the exact frame count. Read filter wait and output length.
Check that inRate matches the input rate. Check that inChannels matches the input layout.
Set volume from 0 to 1 to use a multiplier no greater than 1. Negative values change signal polarity. Values above 1 can produce output values outside the signed 16-bit range.
Confirm that the input is signed 16-bit little-endian PCM. The package does not convert sample formats. It clips output values to the signed 16-bit range.
Set inChannels and outChannels to 1 or 2. Stereo-to-mono output uses the average of both channels. Mono-to-stereo output copies the mono sample to both channels.
Check that both rates are finite values above 0 and at most 1,000,000. Check that channel counts are 1 or 2. Check that filterWindow is an integer from 1 to 4096. Check that volume is finite.
Pass both inRate and outRate. Check that each option uses a number and that the rate is not zero.
Pass a logger that provides error, warn, info, verbose, debug, and silly methods. Install @eliware/log if your application needs the createLogger function.