Natural choice is STE, scrolling version done by Zamuel_a , because this will work only on STE and higher HW.
And as he made sound effects via DMA, while music is via PSG , we have to solve mixing of sound effects into music .
It will need some CPU time, but good thing is that will get rid from unbalanced PSG-DMA volume levels.
So, all sound will go via STE audio DMA.
I don't have any experience with this, just thinkered little:
Should do adding of 2 audio inputs, but it works not so simple with signed ones. To avoid overflow, should have 2 inputs at half amplitude . Fastest way would be to use unsigned inputs, at max value of $7F, then adding them, and after that doing signing.
Code: Select all
move.l (a0)+,d0 * music buffer
add.l (a1)+,d0 * effect buffer
add.l d1,d0 * signing
move.l d0,(a2)+ * Output buffer
Little faster, by adding sound effect directly to music buffer:
Anyone has experience with this ?
Zamuel_a - what think about idea, and do you want to work little on this - should do conversion of effect samples, as described above, + some other not so time consuming things.