SAA: add envelope macro
This commit is contained in:
parent
6c6cb52dd1
commit
5f918a7d18
2 changed files with 15 additions and 1 deletions
|
|
@ -67,6 +67,10 @@ void DivPlatformSAA1099::tick() {
|
|||
if (chan[i].std.hadWave) {
|
||||
chan[i].psgMode=chan[i].std.wave&3;
|
||||
}
|
||||
if (chan[i].std.hadEx1) {
|
||||
saaEnv[i/3]=chan[i].std.ex1;
|
||||
rWrite(0x18+(i/3),saaEnv[i/3]);
|
||||
}
|
||||
if (chan[i].freqChanged || chan[i].keyOn || chan[i].keyOff) {
|
||||
chan[i].freq=parent->calcFreq(chan[i].baseFreq,chan[i].pitch,true);
|
||||
if (chan[i].freq>=32768) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue