mirror of
https://github.com/tildearrow/furnace.git
synced 2024-11-15 17:25:06 +00:00
fix clicking if chip rate is less than audio rate
This commit is contained in:
parent
15f8a9b66f
commit
a377ba1f96
1 changed files with 6 additions and 1 deletions
|
@ -59,7 +59,12 @@ void DivDispatchContainer::fillBuf(size_t runtotal, size_t size) {
|
|||
}
|
||||
|
||||
blip_end_frame(bb[0],runtotal);
|
||||
blip_read_samples(bb[0],bbOut[0],size,0);
|
||||
int totalRead=blip_read_samples(bb[0],bbOut[0],size,0);
|
||||
if (totalRead<(int)size && totalRead>0) {
|
||||
for (size_t i=totalRead; i<size; i++) {
|
||||
bbOut[0][i]=bbOut[0][totalRead-1];//bbOut[0][totalRead];
|
||||
}
|
||||
}
|
||||
|
||||
if (dispatch->isStereo()) {
|
||||
blip_end_frame(bb[1],runtotal);
|
||||
|
|
Loading…
Reference in a new issue