changeset 3963:d240e1ef5356

[xemacs-hg @ 2007-05-19 17:21:29 by vins] Fix crash when playing sound on 64-bit linux systems under native sound.
author vins
date Sat, 19 May 2007 17:21:30 +0000
parents 23a3a480945b
children a4917b3c97cc
files src/ChangeLog src/linuxplay.c
diffstat 2 files changed, 7 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/src/ChangeLog	Fri May 18 21:51:18 2007 +0000
+++ b/src/ChangeLog	Sat May 19 17:21:30 2007 +0000
@@ -1,3 +1,8 @@
+2007-05-17  Vin Shelton  <acs@xemacs.org>
+
+	* linuxplay.c (linux_play_data_or_file): Fix playing sound on
+	64-bit linux.  Pathc from Hans de Graaff.
+
 2007-05-18  Stephen J. Turnbull  <stephen@xemacs.org>
 
 	* config.h.in (ERROR_CHECK_BYTE_CODE): Alphabetize ERROR_CHECK_*.
--- a/src/linuxplay.c	Fri May 18 21:51:18 2007 +0000
+++ b/src/linuxplay.c	Sat May 19 17:21:30 2007 +0000
@@ -323,8 +323,8 @@
                device; repeat until all data has been processed */
   rrtn = length;
   do {
-    for (pptr = data; (prtn = parsesndfile(&pptr,(size_t *)&rrtn,&optr)) > 0; )
-      for (cptr = optr; (crtn = sndcnv(&cptr,(size_t *) &prtn,&sptr)) > 0; ) {
+    for (pptr = data; (prtn = parsesndfile(&pptr,&rrtn,&optr)) > 0; )
+      for (cptr = optr; (crtn = sndcnv(&cptr,&prtn,&sptr)) > 0; ) {
 	for (;;) {
 	  if ((wrtn = write(audio_fd,sptr,crtn)) < 0) {
 	    sound_perror("write"); goto END_OF_PLAY; }