aboutsummaryrefslogtreecommitdiff
path: root/Linux_C_12
diff options
context:
space:
mode:
Diffstat (limited to 'Linux_C_12')
-rw-r--r--Linux_C_12/cCCallSystem_121.c14
1 files changed, 11 insertions, 3 deletions
diff --git a/Linux_C_12/cCCallSystem_121.c b/Linux_C_12/cCCallSystem_121.c
index 0489882..a9cb1ea 100644
--- a/Linux_C_12/cCCallSystem_121.c
+++ b/Linux_C_12/cCCallSystem_121.c
@@ -12,6 +12,8 @@
#include <time.h>
#include <sys/time.h>
#include <unistd.h>
+#include <stdlib.h>
+#include <string.h>
OS WinBeep (OS ios)
{
@@ -50,9 +52,15 @@ void WinGetTickCount (OS ios, int *tickCount, OS *oos)
void WinPlaySound (CLEAN_STRING filename, OS ios, Bool *ook, OS *oos)
{
-/* return PlaySound(filename, NULL, SND_FILENAME | SND_SYNC); */
- rprintf("WinPlaySound -> not implemented");
- *ook = FALSE;
+ char sys[64] = "paplay ";
+
+ rprintf("WinPlaySound\n");
+
+ strcat(sys, cstring(filename));
+
+ rprintf("%s - %d\n", sys, system(sys));
+
+ *ook = TRUE;
*oos = ios;
}