From 6396f46107ad156f967709bd7dd626d70d8d33cc Mon Sep 17 00:00:00 2001 From: kub Date: Sun, 3 Dec 2023 14:56:24 +0100 Subject: [PATCH] sound, fix ffw crash in PSG --- pico/sound/sn76496.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/pico/sound/sn76496.c b/pico/sound/sn76496.c index 27764a93..cb383118 100644 --- a/pico/sound/sn76496.c +++ b/pico/sound/sn76496.c @@ -60,7 +60,7 @@ struct SN76496 }; static struct SN76496 ono_sn; // one and only SN76496 -int *sn76496_regs; +int *sn76496_regs = ono_sn.Register; //static void SN76496Write(int data) @@ -264,7 +264,6 @@ int SN76496_init(int clock,int sample_rate) int i; //R->Channel = stream_create(0,1, sample_rate,R,SN76496Update); - sn76496_regs = R->Register; R->SampleRate = sample_rate; SN76496_set_clock(R,clock); -- 2.39.2