diff options
author | B. Watson <yalhcru@gmail.com> | 2014-05-03 03:12:23 +0700 |
---|---|---|
committer | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2014-05-03 03:12:23 +0700 |
commit | 74a6b3a65e09e3face6db5b6fbfb493579b8222e (patch) | |
tree | 01a75d1be6de6cd08302d627da47fe2eca89717d /games/koules/patches | |
parent | 3c518f602bc09900a39f17c4bfacebe1694d3dd0 (diff) |
games/koules: Use ALSA instead of OSS.
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'games/koules/patches')
-rw-r--r-- | games/koules/patches/aoss.diff | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/games/koules/patches/aoss.diff b/games/koules/patches/aoss.diff new file mode 100644 index 0000000000000..192784d69c862 --- /dev/null +++ b/games/koules/patches/aoss.diff @@ -0,0 +1,30 @@ +diff -Naur koules1.4/sound.c koules1.4.patched/sound.c +--- koules1.4/sound.c 1998-03-04 13:59:19.000000000 -0500 ++++ koules1.4.patched/sound.c 2014-05-02 03:29:02.000000000 -0400 +@@ -40,7 +40,7 @@ + init_sound () + { + int i, fd[2]; +- char *argv[4]; ++ char *argv[5]; + char filename[512]; + + signal (SIGCHLD, SIG_IGN); +@@ -63,11 +63,12 @@ + dup2 (fd[0], STDIN_FILENO); + close (fd[0]); + sprintf (filename, SOUNDSERVER); +- argv[0] = filename; +- argv[1] = unixSoundPath; +- argv[2] = unixSoundDev; +- argv[3] = NULL; +- execvp (filename, argv); ++ argv[0] = "aoss"; ++ argv[1] = filename; ++ argv[2] = unixSoundPath; ++ argv[3] = unixSoundDev; ++ argv[4] = NULL; ++ execvp ("aoss", argv); + fprintf (stderr, "Couldn't Execute Sound Server %s!\n", filename); + exit (0); + }; |