#if !defined( lint ) && !defined( SABER ) static const char sccsid[] = "@(#)sound.c 4.00 97/01/01 xlockmore"; #endif /*- * sound.c - xlock.c and vms_play.c * * See xlock.c for copying information. * * Revision History: * 26-Oct-01: Allow wild cards on sound-files. (joukj@hrem.stm.tudelft.nl) */ #include "xlock.h" #include "iostuff.h" #ifdef USE_RPLAY #include static void play_sound(char *filename, Bool verbose) { int rplay_fd = rplay_open_default(); if (rplay_fd >= 0) { rplay_sound(rplay_fd, filename); rplay_close(rplay_fd); } } #endif #ifdef USE_NAS /* Gives me lots of errors when I compile nas-1.2p5 -- xlock maintainer */ /*- * Connect each time, because it might be that the server was not running * when xlock first started, but is when next nas_play is called */ #include