AY8930: fix first channel envelope reset at random

This commit is contained in:
tildearrow 2022-01-20 03:25:57 -05:00
parent 75ce5f4e2a
commit 1ee23ac198
1 changed files with 1 additions and 1 deletions

View File

@ -22,7 +22,7 @@ void DivPlatformAY8930::acquire(short* bufL, short* bufR, size_t start, size_t l
if (bank!=(w.addr>>4)) {
bank=w.addr>>4;
ay->address_w(0x0d);
ay->data_w(0xa0|(bank<<4));
ay->data_w(0xa0|(bank<<4)|ayEnvMode[0]);
}
ay->address_w(w.addr&15);
if (w.addr==0x0d) {