even. more. volume. slide. fixes.
so it happens on >volMax too amazing
This commit is contained in:
parent
38b16fe5ae
commit
ccd5acf1e4
2 changed files with 3 additions and 2 deletions
|
|
@ -348,10 +348,11 @@ void DivEngine::nextTick() {
|
|||
chan[i].volume+=chan[i].volSpeed;
|
||||
if (chan[i].volume>chan[i].volMax) {
|
||||
chan[i].volume=chan[i].volMax;
|
||||
chan[i].volSpeed=0;
|
||||
dispatch->dispatch(DivCommand(DIV_CMD_VOLUME,i,chan[i].volume>>8));
|
||||
} else if (chan[i].volume<0) {
|
||||
chan[i].volSpeed=0;
|
||||
chan[i].volume=chan[i].volMax+0x100;
|
||||
chan[i].volume=chan[i].volMax+1;
|
||||
dispatch->dispatch(DivCommand(DIV_CMD_VOLUME,i,chan[i].volume>>8));
|
||||
} else {
|
||||
dispatch->dispatch(DivCommand(DIV_CMD_VOLUME,i,chan[i].volume>>8));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue