frno7 / psgplay

PSG play is a music player and emulator for the Atari ST Programmable Sound Generator (PSG) YM2149.
24 stars 4 forks source link

Emulate Atari STE DMA sound hardware #10

Open frno7 opened 4 years ago

frno7 commented 4 years ago

Some SNDH files made for the Atari STE make use of its sound DMA hardware. Let PSG play emulate this piece of hardware. Plan:

EmmanuelKasper commented 2 years ago

Not sure about what is missing here, but want to mention FreeMiNT has also a GPL 2.0 C driver for playing sounds using the STE DMA sound hardware, cf https://github.com/freemint/freemint/blob/5e8dd40e53b6535188f9bcf956d4ff770ccd8a0c/sys/xdd/audio/README. I used this driver to play .au files via cat file.au > /dev/audio and it haven't failed me so far.

frno7 commented 2 years ago

@EmmanuelKasper, I gather the Freemint driver you’re referring to is meant to be used with Atari hardware? This issue is about emulating that kind of hardware. :-) The emulation is almost complete, save for the hardware completion interrupt.

EmmanuelKasper commented 2 years ago

you are right of course !

frno7 commented 1 year ago

MFP GPIP I7 DMA interrupts are asserted in commit 8de3566da18a1623ef76ba8203b8ea2749962ceb. Double buffer DMA sound registers in commit d5d2cee0e6876a7f0d780df35e7f0b26ad702afa.

chris-y commented 1 year ago

Add an example file (dir) that's been flagged to me. SNDH archive:gwEm/DMA/Stardust_Memories.sndh

frno7 commented 1 year ago

Add an example file (dir) that's been flagged to me. SNDH archive: gwEm/DMA/Stardust_Memories.sndh

Confirmed. DMA drums are missing, apparently.