glicol / glicol-cli

glicol cli: cross-platform music live coding in terminal
https://github.com/chaosprint/glicol
MIT License
139 stars 12 forks source link

Support audio devices with buffer sizes not multiples of BLOCK_SIZE #16

Closed tprost closed 1 year ago

tprost commented 1 year ago

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.