From: kub Date: Sun, 3 Dec 2023 13:56:24 +0000 (+0100) Subject: sound, fix ffw crash in PSG X-Git-Tag: v2.00~152 X-Git-Url: https://notaz.gp2x.de/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6396f46107ad156f967709bd7dd626d70d8d33cc;p=picodrive.git sound, fix ffw crash in PSG --- 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);