fdave
Final Dave
Just to let you know I finally had a bit of progress last night with the GigaDrive sound glitches. It seemed to be down to two things:
1) The sound loop was 4*735 samples long, I increased it to 6*735 which gives 100ms latency. But this seemed to help
2) The sound rendering loop (ironically) was locking the DMA out, so I added in an asm("nop") to the tight inner loop and now it's fine.
(NB - I'm only talking about the sound loop bugs, I haven't added anything to the FM emulator, so it still sounds like a SMS
Does this sound about right?
It's a relief that the Cyclone core itself doesn't seem to be locking the DMA out.
Does anyone know how frequently the Sound DMA has to get access to the bus, i.e. how frequently I need a asm("nop") in?
1) The sound loop was 4*735 samples long, I increased it to 6*735 which gives 100ms latency. But this seemed to help
2) The sound rendering loop (ironically) was locking the DMA out, so I added in an asm("nop") to the tight inner loop and now it's fine.
(NB - I'm only talking about the sound loop bugs, I haven't added anything to the FM emulator, so it still sounds like a SMS
Does this sound about right?
It's a relief that the Cyclone core itself doesn't seem to be locking the DMA out.
Does anyone know how frequently the Sound DMA has to get access to the bus, i.e. how frequently I need a asm("nop") in?