wip, gui loses samples

I suspect that the reason is the callback takes too much time and the library cannot copy data from the hardware buffer fast enough. I expected an error in this case, but I guess that doesnt happen