[alsa-devel] Problems with snd_pcm_writei() function

Douglas Lopes Pereira douglaslopespereira at gmail.com
Thu Oct 22 19:34:43 CEST 2009


Hi,

I'm modifying an application that calls snd_pcm_writei() function from
libasound2-dev (on verstion 1.0.16-2). I does work.

I'm splitting my audio data into 160 bytes buffers but when buffer
with different size is passed to that function I hear a noise (like
'Krrr') on my audio device.
I tried to add zeroed bytes to complete the buffer but it didn't work.
I tried to ignore the last buffer and it worked but with some side
effects: No other operation worked properly after that.

Please, can anyone help?
Thanks in advance.
Regards,
Douglas


More information about the Alsa-devel mailing list