mirror of
https://github.com/tildearrow/furnace.git
synced 2024-11-27 23:13:01 +00:00
fix the desync
This commit is contained in:
parent
573ce69dc7
commit
ad145a13e4
2 changed files with 1 additions and 2 deletions
|
@ -152,7 +152,6 @@ class TIASound
|
|||
|
||||
ChannelMode myChannelMode;
|
||||
int myOutputFrequency;
|
||||
int myOutputCounter;
|
||||
unsigned int myVolumePercentage;
|
||||
|
||||
/*
|
||||
|
|
|
@ -904,7 +904,7 @@ void DivEngine::nextBuf(float** in, float** out, int inChans, int outChans, unsi
|
|||
size_t runLeft[32];
|
||||
size_t runPos[32];
|
||||
for (int i=0; i<song.systemLen; i++) {
|
||||
runtotal[i]=blip_clocks_needed(disCont[i].bb[0],size);
|
||||
runtotal[i]=blip_clocks_needed(disCont[i].bb[0],size)-blip_samples_avail(disCont[i].bb[0]);
|
||||
if (runtotal[i]>disCont[i].bbInLen) {
|
||||
delete disCont[i].bbIn[0];
|
||||
delete disCont[i].bbIn[1];
|
||||
|
|
Loading…
Reference in a new issue