Remove some obsolete code in the SID

This commit is contained in:
Jasmine Iwanek
2024-12-12 14:23:11 -05:00
parent 19a3097e39
commit 8bc667b5e0

View File

@@ -22,16 +22,10 @@ psid_t *psid;
void * void *
sid_init(void) sid_init(void)
{ {
#if 0
psid_t *psid;
#endif
reSIDfp::SamplingMethod method = reSIDfp::RESAMPLE; reSIDfp::SamplingMethod method = reSIDfp::RESAMPLE;
float cycles_per_sec = 14318180.0 / 16.0; float cycles_per_sec = 14318180.0 / 16.0;
psid = new psid_t; psid = new psid_t;
#if 0
psid = (psid_t *) malloc(sizeof(sound_t));
#endif
psid->sid = new SID; psid->sid = new SID;
psid->sid->setChipModel(reSIDfp::MOS6581); psid->sid->setChipModel(reSIDfp::MOS6581);
@@ -57,9 +51,6 @@ sid_init(void)
void void
sid_close(UNUSED(void *priv)) sid_close(UNUSED(void *priv))
{ {
#if 0
psid_t *psid = (psid_t *) priv;
#endif
delete psid->sid; delete psid->sid;
#if 0 #if 0
free(psid); free(psid);
@@ -69,10 +60,6 @@ sid_close(UNUSED(void *priv))
void void
sid_reset(UNUSED(void *priv)) sid_reset(UNUSED(void *priv))
{ {
#if 0
psid_t *psid = (psid_t *) priv;
#endif
psid->sid->reset(); psid->sid->reset();
for (uint8_t c = 0; c < 32; c++) for (uint8_t c = 0; c < 32; c++)
@@ -82,23 +69,12 @@ sid_reset(UNUSED(void *priv))
uint8_t uint8_t
sid_read(uint16_t addr, UNUSED(void *priv)) sid_read(uint16_t addr, UNUSED(void *priv))
{ {
#if 0
psid_t *psid = (psid_t *) priv;
#endif
return psid->sid->read(addr & 0x1f); return psid->sid->read(addr & 0x1f);
#if 0
return 0xFF;
#endif
} }
void void
sid_write(uint16_t addr, uint8_t val, UNUSED(void *priv)) sid_write(uint16_t addr, uint8_t val, UNUSED(void *priv))
{ {
#if 0
psid_t *psid = (psid_t *) priv;
#endif
psid->sid->write(addr & 0x1f, val); psid->sid->write(addr & 0x1f, val);
} }
@@ -116,9 +92,6 @@ fillbuf2(int &count, int16_t *buf, int len)
void void
sid_fillbuf(int16_t *buf, int len, UNUSED(void *priv)) sid_fillbuf(int16_t *buf, int len, UNUSED(void *priv))
{ {
#if 0
psid_t *psid = (psid_t *) priv;
#endif
int x = CLOCK_DELTA(len); int x = CLOCK_DELTA(len);
fillbuf2(x, buf, len); fillbuf2(x, buf, len);