Fix return value of setblocksize functions. Recording is interspersed
with silent intervals otherwise.
This commit is contained in:
parent
de08586125
commit
167d1bcd19
@ -251,7 +251,7 @@ alschan_setblocksize(kobj_t obj, void *data, u_int32_t blocksize)
|
||||
blocksize = ALS_BUFFER_SIZE / 2;
|
||||
}
|
||||
sndbuf_resize(ch->buffer, 2, blocksize);
|
||||
return sndbuf_getsize(ch->buffer);
|
||||
return blocksize;
|
||||
}
|
||||
|
||||
static int
|
||||
|
@ -441,7 +441,7 @@ cmichan_setblocksize(kobj_t obj, void *data, u_int32_t blocksize)
|
||||
}
|
||||
sndbuf_resize(ch->buffer, CMI_INTR_PER_BUFFER, blocksize);
|
||||
|
||||
return sndbuf_getsize(ch->buffer);
|
||||
return blocksize;
|
||||
}
|
||||
|
||||
static int
|
||||
|
Loading…
x
Reference in New Issue
Block a user