logging compataibility with emacs

This commit is contained in:
2023-01-31 23:41:09 +00:00
parent 35b9482928
commit fcf6f76949
3 changed files with 6 additions and 9 deletions

View File

@@ -10,7 +10,7 @@
static struct bus bus[256];
static int first = 0; /* First bus available */
//static struct bus *first_on = NULL;
static int first_on = -1; /* First bus to fill buffer with */
short mastermix[BUF_FRAMES*CHANNELS];
@@ -37,9 +37,9 @@ void mixer_init() {
}
struct bus *first_free_bus(struct dsp_filter in) {
if (!initted) return;
if (!initted) return NULL;
assert(initted);
if (first == -1) return NULL;
int ret = first;
first = bus[ret].next;
@@ -80,5 +80,4 @@ void bus_fill_buffers(short *master, int n) {
curbus = nextbus;
}
}