Use the snd_pcm_t only in the IOThread, and reuse code that is well-known to work.
Attach a file by drag & drop or click to upload