Jacek Olszak

Results 5 comments of Jacek Olszak

You are right @tinne26. I've spent the last few days trying to use Player in such a way as to synthesize the sound with as little latency as possible. Unfortunately,...

> > This is on purpose in order to avoid glitches due to lack of buffer data. I'd create a player just after the actual sound starts. > Good idea....

I created a [fork](https://github.com/elgopher/liner) with a small [change](https://github.com/elgopher/liner/commit/5760098a2c15f0cb2ba5c4fce0a993ea6b6a27ee) and it looks like the fix solved the problem, altough I am not sure I didn't broke something else.

One possible solution is to use sync.Once

Looks like iterators are ~2 order of magnitues faster. They are much harder to use though.