ncmixer

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

commit 4716fde1bf500ad77a203c4c9c95c3ccd492a4d9
parent 2faf1300403d6b92a9d65def5e12c29a15ab065f
Author: sin <sin@2f30.org>
Date:   Wed, 13 Jul 2016 12:19:30 +0100

Use a define to select the application buffer time in milliseconds

Default to 500ms which is half of what it used to be.

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

diff --git a/ncmixer.c b/ncmixer.c @@ -34,6 +34,7 @@ #define RATE 44100 #define CHANS 2 #define NSAMPLES 2048 +#define BUFFER_TIME_MS 500 #ifdef DEBUG #define DEBUG_FD 8 @@ -112,7 +113,7 @@ audio_open(char *devname) par.pchan = CHANS; par.sig = 1; par.le = SIO_LE_NATIVE; - par.appbufsz = RATE; + par.appbufsz = RATE * BUFFER_TIME_MS / 1000; if (sio_setpar(sio_hdl, &par) == 0) { DPRINTF("%s: failed to set params\n", devname);