From 50ccf31dd8de12a6e2ca949ca0d54fd029133816 Mon Sep 17 00:00:00 2001 From: Alexandre Ratchov Date: Sun, 28 Jul 2019 11:23:56 +0200 Subject: [PATCH 1/2] Crank max number of channels to 64. --- aucat/defs.h | 2 +- sndiod/defs.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/aucat/defs.h b/aucat/defs.h index 6cfc877..0b7439d 100644 --- a/aucat/defs.h +++ b/aucat/defs.h @@ -20,7 +20,7 @@ /* * limits */ -#define NCHAN_MAX 16 /* max channel in a stream */ +#define NCHAN_MAX 64 /* max channel in a stream */ #define RATE_MIN 4000 /* min sample rate */ #define RATE_MAX 192000 /* max sample rate */ #define BITS_MIN 1 /* min bits per sample */ diff --git a/sndiod/defs.h b/sndiod/defs.h index 9b39c4f..32f05b3 100644 --- a/sndiod/defs.h +++ b/sndiod/defs.h @@ -51,7 +51,7 @@ /* * limits */ -#define NCHAN_MAX 16 /* max channel in a stream */ +#define NCHAN_MAX 64 /* max channel in a stream */ #define RATE_MIN 4000 /* min sample rate */ #define RATE_MAX 192000 /* max sample rate */ #define BITS_MIN 1 /* min bits per sample */ From 436f0dbfff46597ed14e037102e2aeba74722ed7 Mon Sep 17 00:00:00 2001 From: Alexandre Ratchov Date: Sun, 28 Jul 2019 11:26:51 +0200 Subject: [PATCH 2/2] Fix builds with no DEBUG defined. --- libsndio/sio_alsa.c | 2 ++ libsndio/sio_oss.c | 2 ++ 2 files changed, 4 insertions(+) diff --git a/libsndio/sio_alsa.c b/libsndio/sio_alsa.c index d8df57f..4c47ea6 100644 --- a/libsndio/sio_alsa.c +++ b/libsndio/sio_alsa.c @@ -489,8 +489,10 @@ sio_alsa_xrun(struct sio_alsa_hdl *hdl) int wbpf; DPRINTFN(2, "sio_alsa_xrun:\n"); +#ifdef DEBUG if (_sndio_debug >= 2) _sio_printpos(&hdl->sio); +#endif /* * we assume rused/wused are zero if rec/play modes are not diff --git a/libsndio/sio_oss.c b/libsndio/sio_oss.c index 5687f85..6a171c1 100644 --- a/libsndio/sio_oss.c +++ b/libsndio/sio_oss.c @@ -665,8 +665,10 @@ sio_oss_xrun(struct sio_oss_hdl *hdl) int wbpf; DPRINTFN(2, "sio_oss_xrun:\n"); +#ifdef DEBUG if (_sndio_debug >= 2) _sio_printpos(&hdl->sio); +#endif /* * we assume rused/wused are zero if rec/play modes are not