kuma4649 / MDPlayer

GNU General Public License v3.0
129 stars 15 forks source link

Adapt to Arduino OPL2/OPL3DUO (hardware playback VGM). #213

Open denjhang opened 1 year ago

denjhang commented 1 year ago

https://github.com/DhrBaksteen/ArduinoOPL2 Arduino OPL2 allows to use serial port to control YM3812 or YMF262, I hope vgmplay can adapt to this function. I made a USB-OPL3 based on Arduino OPL2, and currently I can use Dosbox-X+sbvgm to play music from OPL1/2/3. https://github.com/DhrBaksteen/ArduinoOPL2/blob/master/examples/OPL3Duo/SerialPassthrough/SerialPassthrough.ino https://github.com/DhrBaksteen/ArduinoOPL2/blob/master/examples/OPL2AudioBoard/SerialPassthrough/SerialPassthrough.ino

Currently I use SerialPassthrough.ino of OPL3DUO, compile these codes with arduino and upload them to arduino nano. After that I use dosbox-x and specify the port number (like com3) and I can use the actual opl3 hardware.

In addition to using dosbox-x to access opl3duo, you can also use opl3bankeditor https://github.com/Wohlstand/OPL3BankEditor

and an immature vgm player made by my friend. https://github.com/zhblue/OPL3USB/tree/main/vgmplay2usb

kuma4649 commented 1 year ago

これはMDPlayerとどのような関係がある話題でしょうか?

denjhang commented 1 year ago

I personally think that hardware that uses serial ports to play VGMs (such as arduino opl2/opl3duo and retrowave opl3) are similar to SPFM and SCCI. So I hope MDPlayer can adapt to more methods of playing vgm using hardware.

kuma4649 commented 1 year ago

そうですか。 残念ながら今のところ新しいハードウェアに対応する予定はありません。