Hi,

I use snd_pcm_writei like : snd_pcm_writei(soundhandle,data,2000), but it
returns that it only played 1984 frames.
space for data is allocated like: data=malloc(2000*soundfile_info.channels*sizeof(short
int));

Data is filled by calling sf_readf_short(infile,data,2000).

Of course I setted the hwparms of alsa according to the structure returned
by sndfile.

It always returns that it only played 1984 frames, so it's not a
temporarily problem.

How can I solve this problem?

Thanks in advance,

Remco Poelstra

_______________________________________________
Alsa-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/alsa-devel

Reply via email to