diff --git a/src/engine/platform/nes.cpp b/src/engine/platform/nes.cpp index 1b9ea082..9e097049 100644 --- a/src/engine/platform/nes.cpp +++ b/src/engine/platform/nes.cpp @@ -309,8 +309,6 @@ int DivPlatformNES::init(DivEngine* p, int channels, int sugRate, bool pal) { } init_nla_table(500,500); - apu.addrSpace=new unsigned char[65536]; - reset(); return 5; } diff --git a/src/engine/platform/sound/nes/apu.h b/src/engine/platform/sound/nes/apu.h index 6d8f9b2f..0c132759 100644 --- a/src/engine/platform/sound/nes/apu.h +++ b/src/engine/platform/sound/nes/apu.h @@ -207,7 +207,7 @@ enum apu_mode { APU_60HZ, APU_48HZ }; break;\ }\ {\ - DMC.buffer = apu.addrSpace[DMC.address];\ + DMC.buffer = 0;\ }\ /* incremento gli hwtick da compiere */\ if (hwtick) { hwtick[0] += tick; }\ @@ -368,7 +368,6 @@ typedef struct _apu { int cpu_cycles; int cpu_opcode_cycle; - unsigned char* addrSpace; BYTE odd_cycle; /* ------------------------------------------------------- */