ncmixer

ncurses audio mixer for DJ'ing
git clone git://git.2f30.org/ncmixer
Log | Files | Refs | README | LICENSE

commit 89d1c6e31941dce7d2a950613c8adf737b201448
parent a43ace2e534c1c6ca70dae36cf2e22404beb6b58
Author: lostd <lostd@2f30.org>
Date:   Wed,  8 Jun 2016 21:03:33 +0100

Remove misleading FPS define

Fix it to 40ms timeout.

Diffstat:
Mncmixer.c | 3+--
1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/ncmixer.c b/ncmixer.c @@ -29,7 +29,6 @@ #define CH1_NAME "/tmp/ch1" #define MASTER_DEV "rsnd/0" /* bypass sndiod by default */ #define MONITOR_DEV "rsnd/1" -#define FPS 25 #define BITS 16 #define RATE 44100 #define CHANS 2 @@ -378,7 +377,7 @@ loop(void) pfd[inputs[1].listenfd].events = POLLIN; for (;;) { - nready = poll(pfd, LEN(pfd), 1000 / FPS); + nready = poll(pfd, LEN(pfd), 40); if (nready == -1) { if (errno != EINTR) printerr(1, "poll");