Now it's possible that we only use part of a block in the output stream callback, instead of relying on the size of the output buffer being a multiple of BLOCK_SIZE. Maybe an alternative would be trying to force audio device configuration to be a multiple of BLOCK_SIZE? I kind of tried that but couldn't get it to work.
I tested this on Linux and Mac and it seems to work okay.
fixes #17
Now it's possible that we only use part of a block in the output stream callback, instead of relying on the size of the output buffer being a multiple of BLOCK_SIZE. Maybe an alternative would be trying to force audio device configuration to be a multiple of BLOCK_SIZE? I kind of tried that but couldn't get it to work.
I tested this on Linux and Mac and it seems to work okay.