diff options
author | John-Mark Gurney <jmg@FreeBSD.org> | 1997-09-03 22:10:47 +0000 |
---|---|---|
committer | John-Mark Gurney <jmg@FreeBSD.org> | 1997-09-03 22:10:47 +0000 |
commit | c9ce00862e1785408288c9b007888c58094f1895 (patch) | |
tree | d3784f8d2a22145f2b534f7f825ba0bc6cbf2beb /audio/nspmod/files/patch-ac | |
parent | 9c073f23533cc291d932488bfe2cc43fcd426a97 (diff) | |
download | ports-c9ce00862e1785408288c9b007888c58094f1895.tar.gz ports-c9ce00862e1785408288c9b007888c58094f1895.zip |
Notes
Diffstat (limited to 'audio/nspmod/files/patch-ac')
-rw-r--r-- | audio/nspmod/files/patch-ac | 44 |
1 files changed, 42 insertions, 2 deletions
diff --git a/audio/nspmod/files/patch-ac b/audio/nspmod/files/patch-ac index 07578dab8ec9..c2e5be6584bc 100644 --- a/audio/nspmod/files/patch-ac +++ b/audio/nspmod/files/patch-ac @@ -1,5 +1,5 @@ -*** nspmod.c.orig Tue Jun 3 02:45:41 1997 ---- nspmod.c Tue Jun 3 02:45:52 1997 +*** nspmod.c.orig Wed Sep 3 14:58:19 1997 +--- nspmod.c Wed Sep 3 14:55:06 1997 *************** *** 1,4 **** --- 1,5 ---- @@ -8,3 +8,43 @@ #include <sys/mman.h> /*PROT_READ,MAP_xxx*/ #include <fcntl.h> /*O_RDONLY*/ #include <sys/stat.h> /*stat*/ +*************** +*** 35,40 **** +--- 36,42 ---- + 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)"); + printf(" -c # play only the channel\n"); + printf(" -e show events\n"); + printf(" -f # output sample rate\n"); +*************** +*** 62,69 **** + oi.outRate = DEF_OUTRATE; + oi.ovsFreq = -1; + /*oi.repLimit = 1;*/ +! while ((optChar = getopt(argc, argv, "c:ef:il:mo:rs:v:")) > 0) { + switch (optChar) { + 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; +--- 64,72 ---- + oi.outRate = DEF_OUTRATE; + oi.ovsFreq = -1; + /*oi.repLimit = 1;*/ +! 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,121 **** +--- 119,125 ---- + + lookOverFile(p, statbuf.st_size); + dacioInit(); ++ dci.bits = oi.bits; + dci.speed = oi.outRate; + dci.stereo = !oi.mono; + dacioConf(&dci); |