VOGONS


First post, by pioneerman2k1

User metadata
Rank Newbie
Rank
Newbie

Hi Folks, dear Forum, dear devs,

i was wondering if it is possible (like the RAW OPL Commands Capture) to give DosBox Access to a real YM3812 like the
https://www.tindie.com/products/DhrBaksteen/o … l2-audio-board/
In the Library ( https://github.com/DhrBaksteen/ArduinoOPL2 ) is an Serialface and an PlayOPL Plugin for Arduino.

Would be nice to read what u think about it.
I already managed to use this OPL2 Audio Board as an external Midi Device ( using General Midi) but would
be nice if it plays real OPL Commands.

Greetz
Chris

Last edited by pioneerman2k1 on 2018-07-17, 08:43. Edited 1 time in total.

Reply 2 of 6, by pioneerman2k1

User metadata
Rank Newbie
Rank
Newbie

I found the thread and the files. But this version of opl pass-through is for an internal soundcard on it regular port. The opl2 Audioboard is connected via serial. The best way were to stream (like the save raw opl function) the raw data via serial to the arduino board.

Reply 3 of 6, by DhrBaksteen

User metadata
Rank Newbie
Rank
Newbie

Hi,

Just wanted to inform you all that today I pushed a fork of DosBox to my Github that can pass the OPL2 data over serial to play all OPL2 audio through my OPL2 board. In the config file you simply put the oplemu to 'opl2board' and set oplport to the COMx port the OPL2 board is connected to and you're all set!

You can find the DosBox fork here: https://github.com/DhrBaksteen/ArduinoOPL2.DosBox
The branch of the library that has the Arduino / Teensy sketch added is this one: https://github.com/DhrBaksteen/ArduinoOPL2/tr … Box_passthrough. Look for examples/DosBoxPassthrough.

I'm still working on this, but so far I'm very happy about how it's turning out 😀

Cheers!

Reply 4 of 6, by pioneerman2k1

User metadata
Rank Newbie
Rank
Newbie

U saved my Weekend!
I tried it on my Teensy 2.0 ++ with no Luck. DOSBOX wrote in the Terminal Window, that it is connected ( "OK" ) and then DosBox hangs.
With my Arduino Uno i got no problem.

Btw. IT SOUNDS SO NICE, THANK YOU!!!

Reply 5 of 6, by DhrBaksteen

User metadata
Rank Newbie
Rank
Newbie

Great to hear that it works for you! (at least with an Arduino)

Still some things I'm looking in to. Mainly slowdowns like Stunts, Hocus Pocus and Fuzzy are having. Likely due to having to transmit a lot of OPL2 data. Also I think that Adlib Tracker is not always as smooth as it should be...

Reply 6 of 6, by Jo22

User metadata
Rank l33t++
Rank
l33t++

Just saw this thread! I would also like to say thanks a lot for this, it's very interesting I think. 😀

"Time, it seems, doesn't flow. For some it's fast, for some it's slow.
In what to one race is no time at all, another race can rise and fall..." - The Minstrel

//My video channel//