Mercurial > hg > xemacs-beta
diff src/hpplay.c @ 442:abe6d1db359e r21-2-36
Import from CVS: tag r21-2-36
author | cvs |
---|---|
date | Mon, 13 Aug 2007 11:35:02 +0200 |
parents | 3ecd8885ac67 |
children | 576fb035e263 |
line wrap: on
line diff
--- a/src/hpplay.c Mon Aug 13 11:33:40 2007 +0200 +++ b/src/hpplay.c Mon Aug 13 11:35:02 2007 +0200 @@ -51,6 +51,8 @@ #include <config.h> #include "lisp.h" +#include "nativesound.h" + #include <stdlib.h> #include <stdio.h> #ifdef HPUX10 @@ -61,6 +63,7 @@ #include <audio/CUlib.h> #endif /* !HPUX 10 */ + Lisp_Object Vhp_play_server; Lisp_Object Vhp_play_speaker; int hp_play_gain; @@ -202,11 +205,11 @@ play_bucket_internal(audio, pSBucket, volume); - ASetErrorHandler(prevHandler); + ASetErrorHandler(prevHandler); } -void +int play_sound_data (data, length, volume) unsigned char * data; int length; @@ -218,7 +221,17 @@ SunHeader *header; long status; char *server; + int result; + /* #### Finish this to return an error code. + This function signal a lisp error. How consistent with the rest. + What if this function is needed in doing the beep for the error? + + Apparently the author of this didn't read the comment in + Fplay_sound. + */ + + if (STRINGP (Vhp_play_server)) server = (char *) XSTRING_DATA (Vhp_play_server); server = ""; @@ -250,6 +263,8 @@ ASetErrorHandler(prevHandler); if (status) player_error_internal( audio, "Audio data copy failed", status ); + + return 1; } void