Modified existing SNES APU code for use with Raspberry Pi