From 1ee23ac198d05d94d6b5ba4534d024da5a9cb74c Mon Sep 17 00:00:00 2001 From: tildearrow Date: Thu, 20 Jan 2022 03:25:57 -0500 Subject: [PATCH] AY8930: fix first channel envelope reset at random --- src/engine/platform/ay8930.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/engine/platform/ay8930.cpp b/src/engine/platform/ay8930.cpp index 84d8323de..8010fb8a3 100644 --- a/src/engine/platform/ay8930.cpp +++ b/src/engine/platform/ay8930.cpp @@ -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) {