summaryrefslogtreecommitdiff
path: root/usr.bin/aucat/wav.c
diff options
context:
space:
mode:
authorAlexandre Ratchov <ratchov@cvs.openbsd.org>2010-01-14 17:43:56 +0000
committerAlexandre Ratchov <ratchov@cvs.openbsd.org>2010-01-14 17:43:56 +0000
commit4e433dfed61894d01df71c5ed60ca97083c870aa (patch)
tree394fc306e0b21d65401c39e167996b6e8220267d /usr.bin/aucat/wav.c
parent431b501696bc7236b327ee44aad403c34e8e1ccd (diff)
Use -C option to specify recorded channel range instead of -c which
is for played channels. spotted by Jan Stary <hans at stare.cz>, thanks
Diffstat (limited to 'usr.bin/aucat/wav.c')
-rw-r--r--usr.bin/aucat/wav.c16
1 files changed, 16 insertions, 0 deletions
diff --git a/usr.bin/aucat/wav.c b/usr.bin/aucat/wav.c
index aa6c7670341..e811c61aa6b 100644
--- a/usr.bin/aucat/wav.c
+++ b/usr.bin/aucat/wav.c
@@ -373,6 +373,14 @@ wav_new_in(struct fileops *ops, char *name, unsigned hdr,
abuf_fill(buf); /* XXX: move this in dev_attach() ? */
dev_attach(name, buf, par, xrun, NULL, NULL, 0, ADATA_UNIT);
dev_setvol(buf, MIDI_TO_ADATA(volctl));
+#ifdef DEBUG
+ if (debug_level >= 2) {
+ dbg_puts(name);
+ dbg_puts(": playing ");
+ aparams_dbg(par);
+ dbg_puts("\n");
+ }
+#endif
return f;
}
@@ -420,6 +428,14 @@ wav_new_out(struct fileops *ops, char *name, unsigned hdr,
buf = abuf_new(nfr, par);
aproc_setin(p, buf);
dev_attach(name, NULL, NULL, 0, buf, par, xrun, 0);
+#ifdef DEBUG
+ if (debug_level >= 2) {
+ dbg_puts(name);
+ dbg_puts(": recording ");
+ aparams_dbg(par);
+ dbg_puts("\n");
+ }
+#endif
return f;
}