aboutsummaryrefslogtreecommitdiff
path: root/audio/nspmod/files/patch-nspmod.c
diff options
context:
space:
mode:
Diffstat (limited to 'audio/nspmod/files/patch-nspmod.c')
-rw-r--r--audio/nspmod/files/patch-nspmod.c35
1 files changed, 0 insertions, 35 deletions
diff --git a/audio/nspmod/files/patch-nspmod.c b/audio/nspmod/files/patch-nspmod.c
deleted file mode 100644
index ed4bb6938760..000000000000
--- a/audio/nspmod/files/patch-nspmod.c
+++ /dev/null
@@ -1,35 +0,0 @@
---- nspmod.c.orig 1995-09-16 08:10:37 UTC
-+++ nspmod.c
-@@ -1,4 +1,5 @@
- #include <stdio.h> /*(perror)*/
-+#include <sys/types.h>
- #include <sys/mman.h> /*PROT_READ,MAP_xxx*/
- #include <fcntl.h> /*O_RDONLY*/
- #include <sys/stat.h> /*stat*/
-@@ -35,6 +36,7 @@ help(const char *argv0)
- printf("NSPmod version " LIT(VERSION_MAJOR) "." LIT(VERSION_MINOR) "\n");
- printf("Usage: %s [options] modfile\n", argv0);
- printf("Options:\n");
-+ printf(" -b # number of bits to output (8 or 16)\n");
- printf(" -c # play only the channel\n");
- printf(" -e show events\n");
- printf(" -f # output sample rate\n");
-@@ -62,8 +64,9 @@ main(int argc, char *argv[])
- oi.outRate = DEF_OUTRATE;
- oi.ovsFreq = -1;
- /*oi.repLimit = 1;*/
-- while ((optChar = getopt(argc, argv, "c:ef:il:mo:rs:v:")) > 0) {
-+ while ((optChar = getopt(argc, argv, "b:c:ef:il:mo:rs:v:")) > 0) {
- switch (optChar) {
-+ case 'b': oi.bits = (i15x)strtol(optarg, NULL, 0); break;
- case 'c': oi.onlyCh = (i15x)strtol(optarg, NULL, 0) | 0x100; break;
- case 'e': oi.showEvents++; break;
- case 'f': oi.outRate = (u16x)strtol(optarg, NULL, 0); break;
-@@ -116,6 +119,7 @@ main(int argc, char *argv[])
-
- lookOverFile(p, statbuf.st_size);
- dacioInit();
-+ dci.bits = oi.bits;
- dci.speed = oi.outRate;
- dci.stereo = !oi.mono;
- dacioConf(&dci);