ncmixer

ncurses audio mixer with cross-fade support
git clone git://git.2f30.org/ncmixer.git
Log | Files | Refs | README | LICENSE

commit 229451d13605c2f6726e618de325b89523904d9d
parent b01b046ec887126487bcb6d1c4d1bf35f2fece22
Author: sin <sin@2f30.org>
Date:   Mon Jun  6 16:25:50 +0100

Print channel status (connected/disconnected)

Diffstat:
ncmixer.c | 3++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/ncmixer.c b/ncmixer.c @@ -66,7 +66,6 @@ struct input { short buf[NSAMPLES]; short attenuated_buf[NSAMPLES]; int nsamples; - int active; int monitor; } inputs[] = { { .listenfd = -1, .clifd = -1 }, @@ -342,6 +341,8 @@ draw(void) move(0, 0); printw("ch0_monitor: %d\n", inputs[0].monitor); printw("ch1_monitor: %d\n", inputs[1].monitor); + printw("ch0_connected: %d\n", inputs[0].clifd != -1); + printw("ch1_connected: %d\n", inputs[1].clifd != -1); printw("speed: %d\n", speed); printw("pos: %0.2f\n", xfpos); printw("xfading: %d\n", xfading);