attempt to fix the volume slide mess
also a fix to noise arps in basic mode in SMS the volume slides will be an adventure as the behavior seems to be hard to determine
This commit is contained in:
parent
53975349e5
commit
67847d79cf
6 changed files with 69 additions and 18 deletions
|
|
@ -342,6 +342,7 @@ void DivEngine::nextTick() {
|
|||
}
|
||||
}
|
||||
if (chan[i].volSpeed!=0) {
|
||||
chan[i].volume=(chan[i].volume&0xff)|(dispatch->dispatch(DivCommand(DIV_CMD_GET_VOLUME,i))<<8);
|
||||
chan[i].volume+=chan[i].volSpeed;
|
||||
if (chan[i].volume>0x7f00) chan[i].volume=0x7f00;
|
||||
if (chan[i].volume<0) chan[i].volume=0;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue