On Thu, 20 Sep 2001, Remco Poelstra wrote:

> 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?

It can be caused with alignment settings. If you want know more details,
send me output from snd_pcm_dump() routine.

                                                Jaroslav

-----
Jaroslav Kysela <[EMAIL PROTECTED]>
SuSE Linux    http://www.suse.com
ALSA project  http://www.alsa-project.org


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

Reply via email to