Haha
, I didn't forget the buffer of course but there was a mess in declarations of those three objects.
In my real situation I'm actually using a class to wrap up the working with sound functionality which is used by other objects and I made some scope errors
, This code is just a demo (an awful one
), maybe I'm looking like a totally rookie programmers but it's the "deadlines pressure" which make the impossible possible
.
Thank you about the sf:Clock clue that is how it's done but as the doc said about sleep:
Make the current thread sleep for a given duration.
I don't mind if the echo sound thread blocked less than a second.