mirror of
https://github.com/tildearrow/furnace.git
synced 2024-12-29 02:51:24 +00:00
fix crash when previewing size 0 waves
This commit is contained in:
parent
d8571eda08
commit
6db9d312ec
1 changed files with 4 additions and 0 deletions
|
@ -2832,6 +2832,10 @@ void DivEngine::previewWave(int wave, int note) {
|
|||
isBusy.unlock();
|
||||
return;
|
||||
}
|
||||
if (song.wave[wave]->len<=0) {
|
||||
isBusy.unlock();
|
||||
return;
|
||||
}
|
||||
blip_clear(samp_bb);
|
||||
blip_set_rates(samp_bb,song.wave[wave]->len*(27.5*pow(2.0,(double)(note+3)/12.0)),got.rate);
|
||||
samp_prevSample=0;
|
||||
|
|
Loading…
Reference in a new issue