Adlib Emulator on SPC?

This is for people involved in the developement of Snes9x, or SNES emulators in general.
BUG REPORTS BELONG IN TECH SUPPORT/BUG TRACKING!
Post Reply
marklorece
Snes9x White Belt
Posts: 1
Joined: Wed Mar 29, 2023 7:12 am
Location: https://gbapps.net/gbwhatsapp-apk-1/

Adlib Emulator on SPC?

Post by marklorece »

I'd like to try and get into SPC programming a little bit more and implement an Adlib (OPL2/OPL3) emulator and maybe play some music from classic DOS games on the SNES.

Like this one for example: https://github.com/adplug/adplug/blob/m ... adlibemu.c

Anyone here more knowledgable about the SPC700 who can guess if and how that might work?

Would the SPC be fast enough for everything? Atm I guess it probably wouldn't be, at least not to play back all the channels at least for OPL3.

What's the best way to have it actually output sound? Would I mix channels myself and render into the echo buffer, or can I set up some samples that are played back in a loop and render the channels into those? I guess that would probably be better because I could use the hardware mixer? What's best practice for dealing with sync issues?
raiffallen5854g
Snes9x White Belt
Posts: 1
Joined: Wed May 24, 2023 5:03 pm
Location: https://whatsappinstalling.com/whatsapp-aero-apk/

Re: Adlib Emulator on SPC?

Post by raiffallen5854g »

Hello, Implementing an Adlib (OPL2/OPL3) emulator and playing music from classic DOS games on the SNES can be challenging. The SPC700 may not be fast enough to handle all channels simultaneously. To output sound, you can render channels into the echo buffer or set up samples played back in a loop. Sync issues can be managed by maintaining accurate timing and synchronization. Detailed implementation would require in-depth knowledge and expertise in SPC700 programming and SNES audio programming.
Post Reply