VOGONS


First post, by Maz Hoot

User metadata
Rank Newbie
Rank
Newbie

I am a little lost about all the emulators, I’m on mac OS M3 Sonoma and I already tested dosbox, dosbox-staging, dosbox-x… on dosbox the sound was not good, on dosbox staging it was better, and on dosbox-x with nuked option it looks like the better I can have ?

To be clear, by best sound I mean the more close to real ymf262. If it’s dosbox-x the best, why on internet there is comparison between real ymf262 and dosbox instead of dosbox-x ? Does someone made such comparisons with dosbox-x and can I listen it ?

I am asking myself if it’s a good thing for me to buy a retrowave opl3 usb sound card for dosbox-x (mostly for adlibtracker2) or if dosbox-x with nuked option is so accurate that it’s not necessary. At the moment for my ears, sound seems to be pretty good. I will make comparison between dosbox-x and a real ymf262 in a toshiba satellite pro 410cdt this Sunday (I can’t do it before), but I would like to have other people opinion too and find other audio comparisons

I also like the sound of ymf744b-r which is in my toshiba satellite pro 4300 series. I can’t make much more comparisons with it myself because he is under repair and it will take a few weeks… is it possible to emulate ymf744b-r in dosbox-x instead of ymf262 ? If not, does this and also the fact that opl3lpt and retrowave opl3 express uses both ymf262 mean that there is a consensus about the fact that ymf262 is the best of all yamaha opl3 chips ?

My music (chiptune, post-punk, world, industrial) : https://mazhootmusic.bandcamp.com

Reply 1 of 10, by Jo22

User metadata
Rank l33t++
Rank
l33t++

Oof! Good question. I think most current OPL3 cores are pretty accurate.
But emulation of YAC512 DAC is another matter, maybe.
Also, Descent FM music on a SB16 CT1740 "noiseblaster" did sound different to an PAS16 performance, more bassy. That's the analogue side, though.
It's like with a Sega Genesis/MD Model 1 vs Model 2, I think.
The first version was very "full" or "heavy" sounding, but also noisy.

"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//

Reply 2 of 10, by eddman

User metadata
Rank Oldbie
Rank
Oldbie

Any one that has Nuked, which includes 86Box.

Reply 3 of 10, by superfury

User metadata
Rank l33t++
Rank
l33t++

I made UniPCemu, though that's OPL2. Right now the only cycle-accurate OPL2 that exists afaik.
Idk if cycle-accurate OPL3 exists, though.

Did add support for Sound Blaster Pro dual OPL2 recently. It sounds pretty great from what I've tested.

Idk how compatible dual OPL2 vs OPL3 is though.

Author of the UniPCemu emulator.
UniPCemu Git repository
UniPCemu for Android, Windows, PSP, Vita and Switch on itch.io

Reply 4 of 10, by GloriousCow

User metadata
Rank Member
Rank
Member
superfury wrote on 2025-05-15, 16:52:

I made UniPCemu, though that's OPL2. Right now the only cycle-accurate OPL2 that exists afaik.
Idk if cycle-accurate OPL3 exists, though.

Do you have any recorded comparisons of your OPL2 emulation vs Nuked or other implementations?

MartyPC: A cycle-accurate IBM PC/XT emulator | https://github.com/dbalsom/martypc

Reply 5 of 10, by superfury

User metadata
Rank l33t++
Rank
l33t++
GloriousCow wrote on 2025-05-15, 21:06:
superfury wrote on 2025-05-15, 16:52:

I made UniPCemu, though that's OPL2. Right now the only cycle-accurate OPL2 that exists afaik.
Idk if cycle-accurate OPL3 exists, though.

Do you have any recorded comparisons of your OPL2 emulation vs Nuked or other implementations?

Didn't do any. Simply went by ear comparing sound against youtube recordings (sounding exactly the same) and implemented based on reverse engineering reports of the chip on how it works (spoiler: it's a fully digital chip, not analog at all, all is performed using LUTs (quarter sinus wave, the various effects) and connecting logic (counters, single bit flips for negative sign and less documented logic connecting it all). The only part that's analog is done by the DAC connected to the chip, converting the 1-bit sign, 3 bit exponent and 10 bits mantissa floating point to a voltage on the output (in my case performed using a LUT for speed).
It started out as the simple one from fake86, but I pretty much rewrote the entire sound generating to a fully accurate OPL2 chip based on the reverse engineering instead.

All it basically has is a high-pass filter on the component that sends it's output to SDL, which is basically a 1Hz filter only, to prevent DC output.
Oh, and a 15392Hz low-pass filter after the DAC of each chip (left,right or mono(with pre-Sound Blaster Pro or just Adlib card emulation)). The setup (single/dual OPL2 or none) is detected by the emulated Sound Blaster(1.x, 2.o, Pro or none) combined with the Adlib emulation being enabled or not:
- No Adlib or Sound Blaster: no OPL2.
- Just Adlib: single OPL2.
- Pre-Pro Sound Blaster: single OPL2.
- Pro Sound Blaster: dual-OPL2.

The Game Blaster works much in the same way, except being split off onto a higher I/O base address (250h with full emulation of all non-SB chips as a standalone Game Blaster board) when Sound Blaster Pro is emulated, instead of the usual 220h base address on Pre-Pro being emulated.

My OPL2 has a bit more ringing in some cases though (feedback), perhaps because of the filters? Just with some songs (like MegaRace's) though. https://www.dropbox.com/scl/fi/0aodnll70emapl … t=ucwe8ia2&dl=0

Author of the UniPCemu emulator.
UniPCemu Git repository
UniPCemu for Android, Windows, PSP, Vita and Switch on itch.io

Reply 7 of 10, by darry

User metadata
Rank l33t++
Rank
l33t++
leileilol wrote on 2025-05-16, 04:46:

The homework everyone copies:
AUDIO - Nuked OPL3 Patch for DOSBox(+Windows build) (SDL1)

There really hasn't been anything better than Nuked. There's just other loose end odd OPL3 clones to take on now (CQM etc)

Nukeykt's work on pretty much every one of his endeavors, at least the ones I have heard of and/or tried, has a habit of setting a high water mark for emulation accuracy.

Reply 8 of 10, by Maz Hoot

User metadata
Rank Newbie
Rank
Newbie
superfury wrote on 2025-05-15, 16:52:
I made UniPCemu, though that's OPL2. Right now the only cycle-accurate OPL2 that exists afaik. Idk if cycle-accurate OPL3 exists […]
Show full quote

I made UniPCemu, though that's OPL2. Right now the only cycle-accurate OPL2 that exists afaik.
Idk if cycle-accurate OPL3 exists, though.

Did add support for Sound Blaster Pro dual OPL2 recently. It sounds pretty great from what I've tested.

Idk how compatible dual OPL2 vs OPL3 is though.

That's impressive ! I am more interested about OPL3 but it will interest a lot of people for sure !

My music (chiptune, post-punk, world, industrial) : https://mazhootmusic.bandcamp.com

Reply 9 of 10, by Maz Hoot

User metadata
Rank Newbie
Rank
Newbie
leileilol wrote on 2025-05-16, 04:46:

The homework everyone copies:
AUDIO - Nuked OPL3 Patch for DOSBox(+Windows build) (SDL1)

There really hasn't been anything better than Nuked. There's just other loose end odd OPL3 clones to take on now (CQM etc)

Thank you, so there is no difference between emulators, it's just about this Nuked option which is here or not and which I saw only on dosbox-x

Yesterday I had a problem with dosbox-x who suddenly didn't want to take the F keys (which are obligatory for adlibtracker 2) it made MAC OS actions instead. It already happened and it's really annoying

My music (chiptune, post-punk, world, industrial) : https://mazhootmusic.bandcamp.com

Reply 10 of 10, by superfury

User metadata
Rank l33t++
Rank
l33t++
Maz Hoot wrote on 2025-05-16, 08:38:
superfury wrote on 2025-05-15, 16:52:
I made UniPCemu, though that's OPL2. Right now the only cycle-accurate OPL2 that exists afaik. Idk if cycle-accurate OPL3 exists […]
Show full quote

I made UniPCemu, though that's OPL2. Right now the only cycle-accurate OPL2 that exists afaik.
Idk if cycle-accurate OPL3 exists, though.

Did add support for Sound Blaster Pro dual OPL2 recently. It sounds pretty great from what I've tested.

Idk how compatible dual OPL2 vs OPL3 is though.

That's impressive ! I am more interested about OPL3 but it will interest a lot of people for sure !

There was just one thing I couldn't figure out, though. There's two different hardwired modulators (each with two different speeds), one being the AM modulator and that other one. Managed to get the AM modulator working properly afaik, but had to adjust the other one based on Dosbox's code, as I couldn't find anywhere how it works in the OPL2 exactly. That's pretty much the only floating-point part in there right now.
Ah, it's the lfo_pm_table (vibrato) thing.
Basically it just manually recalculates the phase increment every sample, according to the PM wave LUT, which is indexed by the LFO phase.

Author of the UniPCemu emulator.
UniPCemu Git repository
UniPCemu for Android, Windows, PSP, Vita and Switch on itch.io