My new ARM7 based sound emulator is coming along nicely, and aside from some bugs, it's working quite well.. However, I have hit a big problem with execution speed. The ARM7 is clocked @ 40Mhz, and uses an internal timer to generate an IRQ @ ~24Khz to output 1 sample at a time.
It sounds quite perfect, except that the 40Mhz cpu is killing me, and I can only manage 2FPS at best on a 2GHz machine.. I'm told 3Ghz maybe gets an extra 2 FPS, from someone who tried it.
I'm no expert at cpu cores, so i'm sure the core could stand some optimization, but I had a crazy idea, which I wondered if it could work..
Could I somehow slow down the cpu speed (say to 20Mhz or even as low as 4Mhz), and simply resample the output stream up to match the original 24Khz?
Can this work? Thanks for any advice/suggestions-