[Dev Request] Support for OPL2 Audio Board (OPL2 Passthrough)

Developer's Forum, for discussion of bugs, code, and other developmental aspects of DOSBox.

[Dev Request] Support for OPL2 Audio Board (OPL2 Passthrough)

Postby pioneerman2k1 » 2018-7-16 @ 16:17

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/DhrBaks ... dio-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-7-17 @ 08:43, edited 1 time in total.
pioneerman2k1
Newbie
 
Posts: 3
Joined: 2018-7-16 @ 16:03

Re: [Dev Request] OPL2 Audio Board implementation

Postby leileilol » 2018-7-16 @ 21:14

Yes it's possible. h-a-l-9000 did it for his (now really outdated) megabuild a decade ago.
Voodoo2s aren't 100mhz stock
Geforce256 isn't released as a beta on New Years '99 under the Quadro brand
DOS gaming isn't a bilinear 320x200 16:10
DOS PCs aren't better than the Macintosh
DOSBox is not for running Windows 9x
SGL != Glide
User avatar
leileilol
l33t++
 
Posts: 9369
Joined: 2006-12-16 @ 18:03

Re: [Dev Request] Support for OPL2 Audio Board (OPL2 Passthrough)

Postby pioneerman2k1 » 2018-7-17 @ 12:01

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.
pioneerman2k1
Newbie
 
Posts: 3
Joined: 2018-7-16 @ 16:03

Re: [Dev Request] Support for OPL2 Audio Board (OPL2 Passthrough)

Postby DhrBaksteen » 2018-7-21 @ 17:55

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/ArduinoO ... assthrough. Look for examples/DosBoxPassthrough.

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

Cheers!
User avatar
DhrBaksteen
Newbie
 
Posts: 6
Joined: 2012-12-24 @ 22:38

Re: [Dev Request] Support for OPL2 Audio Board (OPL2 Passthrough)

Postby pioneerman2k1 » 2018-7-22 @ 09:13

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!!!
pioneerman2k1
Newbie
 
Posts: 3
Joined: 2018-7-16 @ 16:03

Re: [Dev Request] Support for OPL2 Audio Board (OPL2 Passthrough)

Postby DhrBaksteen » 2018-7-22 @ 20:37

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...
User avatar
DhrBaksteen
Newbie
 
Posts: 6
Joined: 2012-12-24 @ 22:38

Re: [Dev Request] Support for OPL2 Audio Board (OPL2 Passthrough)

Postby Jo22 » 2018-8-15 @ 12:30

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//
User avatar
Jo22
l33t
 
Posts: 2909
Joined: 2009-12-13 @ 07:06
Location: Europe


Return to DOSBox Development

Who is online

Users browsing this forum: No registered users and 4 guests