Yea I saw the issue, but haven't had time to look at it yet. I'm very busy at the moment.
My guess is that the waveout function expects a buffer with a size with the power of two, but I haven't looked into it yet. I should be able to work around that, if that is the case though.