Getting "assertion: 'length == blockSize' failed" in custom output plugin

The expected length is the DSP buffer size, you receive this value during the init callback. If you would like to consume different amounts it’s recommended you use the buffered mix instead.