06-27-2020, 08:31 PM
There is some doc on sound here (by mic_): http://jiggawatt.org/badc0de/ngpcsound.html
and his awesome music players: http://jiggawatt.org/badc0de/console.htm (search for NeoGeo Pocket / Color)
I've done some tests/demos on my side an YM player with my 1st game Columns (tlcs900h code sending data to z80) and a mod player based on timer0 interrupts.
I think the DMA stuff is the best solution (mic_'s doc and his ym player).
Maybe you can mix ym/vgm music playback and sound fx or stop music while playing sfx (mix can be: play music left side and sfx right...).
But yes, playing music this way will consume cpu time that won't be available by your game.
and his awesome music players: http://jiggawatt.org/badc0de/console.htm (search for NeoGeo Pocket / Color)
I've done some tests/demos on my side an YM player with my 1st game Columns (tlcs900h code sending data to z80) and a mod player based on timer0 interrupts.
I think the DMA stuff is the best solution (mic_'s doc and his ym player).
Maybe you can mix ym/vgm music playback and sound fx or stop music while playing sfx (mix can be: play music left side and sfx right...).
But yes, playing music this way will consume cpu time that won't be available by your game.

