Fix return value of setblocksize functions. Recording is interspersed

with silent intervals otherwise.
This commit is contained in:
Orion Hodson 2001-09-03 00:45:00 +00:00
parent de08586125
commit 167d1bcd19
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=82834
2 changed files with 2 additions and 2 deletions

View file

@ -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

View file

@ -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