changes for improved timing event system
Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@1968
This commit is contained in:
parent
5c26302fc2
commit
dfbb195418
13 changed files with 103 additions and 116 deletions
|
@ -250,12 +250,8 @@ void MixerChannel::FillUp(void) {
|
|||
SDL_UnlockAudio();
|
||||
return;
|
||||
}
|
||||
Bitu filled=(done-mixer.done)*1000/(mixer.needed-mixer.done);
|
||||
Bitu index=PIC_Index();
|
||||
if (filled<index) {
|
||||
Bitu temp=mixer.done+((index*(mixer.needed-mixer.done))/1000);
|
||||
Mix(temp);
|
||||
}
|
||||
float index=PIC_TickIndex();
|
||||
Mix((Bitu)(index*mixer.needed));
|
||||
SDL_UnlockAudio();
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue