Update of /cvsroot/alsa/alsa-lib/test In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv26616
Modified Files: pcm.c Log Message: Fixed wrong initialization of start_threshold Index: pcm.c =================================================================== RCS file: /cvsroot/alsa/alsa-lib/test/pcm.c,v retrieving revision 1.28 retrieving revision 1.29 diff -u -r1.28 -r1.29 --- pcm.c 5 Nov 2003 10:38:39 -0000 1.28 +++ pcm.c 3 Feb 2004 16:14:39 -0000 1.29 @@ -148,8 +148,8 @@ printf("Unable to determine current swparams for playback: %s\n", snd_strerror(err)); return err; } - /* start the transfer when the buffer is full */ - err = snd_pcm_sw_params_set_start_threshold(handle, swparams, buffer_size); + /* start the transfer when the buffer is almost full */ + err = snd_pcm_sw_params_set_start_threshold(handle, swparams, (buffer_size / period_size) * period_size); if (err < 0) { printf("Unable to set start threshold mode for playback: %s\n", snd_strerror(err)); return err; ------------------------------------------------------- The SF.Net email is sponsored by EclipseCon 2004 Premiere Conference on Open Tools Development and Integration See the breadth of Eclipse activity. February 3-5 in Anaheim, CA. http://www.eclipsecon.org/osdn _______________________________________________ Alsa-cvslog mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/alsa-cvslog