Call snd_pcm_prepare() before every sample. Should fix bug #2 https://sourceforge.net/p/syncterm/tickets/2/