Port DSP code from lolSNES.