snd_pcm_writei() returns the type snd_pcm_sframes_t, not int. Use the correct variable type.
Attach a file by drag & drop or click to upload