VOGONS


VOPL3 - Virtual OPL3 FM + MPU-401 bridge for Windows 98/ME

Topic actions

Reply 60 of 74, by onethirdxcubed

User metadata
Rank Member
Rank
Member

Here's a quick test build of VOPL3 that changes the renderer program to stop streaming any audio when the Adlib is idle. This breaks the status of the Renderer in the system tray app a bit, but you should be able to see if that prevents disk corruption while not actively playing audio.

Reply 61 of 74, by sdz

User metadata
Rank Oldbie
Rank
Oldbie

I have also prepared a version of VOPL3 that does that. The installer won't overwrite the existing vopl3.ini file, but it will copy next to it the new template. Either overwrite it manually, or just add to your existing .ini file:
idleclose=5
This will close the audio stream after 5 seconds of FM silence. Set it to 0 for previous behaviour.

Reply 62 of 74, by stanwebber

User metadata
Rank Oldbie
Rank
Oldbie

i've had this running again with idleclose=10 and all seems well. i installed the v0.20b21 george breese pci latency patch on top of the 4in1 v4.35 drivers.

the only suggestion i'd have at this point is to make the installer more granular in regard to choosing between fm and mpu401 port trapping. i have use cases for the current options of fm-only and fm + mpu401 for my laptop with a wretched ess maestro 2e or my wavetable isa cards without a ymf262 (or even a hardware opl3). by far my biggest use case is mpu401-only for use with windows softsynths and virtual midi loopback cables (accomplished prior with vdmsound granularity). it would be nice to have this option and be able to banish the cludge that is vdmsound 9x entirely.

Reply 63 of 74, by sdz

User metadata
Rank Oldbie
Rank
Oldbie

I considered doing that when adding MPU-401 bridge support but never implemented it as I though it would be a bit silly having a tool named VOPL3 that can be configured to only do the MPU-401 port trapping and redirection. I can see how it can be useful though. I'll add that in the next release, which will include closing the audio stream when the OPL3 engine is idle, and a couple of other things.

Reply 64 of 74, by sdz

User metadata
Rank Oldbie
Rank
Oldbie

New VOPL3 release: https://github.com/sdz-mods/VOPL3/releases/tag/A06

Main highlights:
-added DOSBox DBOPL backend. The installer now offers three OPL3 emulators: Nuked OPL3, Nuked OPL3 fast and DOSBox's DBOPL.
-more VOPL3 FM/MPU-401 install granularity. VOPL3 can now be installed in FM, FM + MPU-401 bridge or MPU-401 bridge only modes. When installed in MPU-401 bridge only mode, VOPL3 won't trap the FM ports, and SBEMUL can either be left untouched or be patched and steered away from them.
-new idleclose=<seconds> setting in VOPL3.INI: releases the sound device after that many seconds of FM silence, instead of keeping it open and streaming silence. It is off by default.
-new rate=<hz> setting in VOPL3.INI: the output sample rate: 11025, 16000, 22050, 32000, 44100 or 48000 (default).
-fixed notes left hanging after a game quits. A game that exits without silencing the chip could leave a note playing indefinitely. VOPL3 now releases such notes when the game's DOS box closes.
-MIDI synth kept open until the game's DOS box closes. Before, for DOS games it would close either when the DOS box was closed or after 30 seconds of silence.
-SBPATCH coexists with other SBEMUL patches: a stale PE checksum now gives a warning instead of stopping the install.
-control panel: now shows when the output is released, when FM is off (left to SBEMUL, or ports left free), which renderer is in use, and the sample rate in use.

Reply 65 of 74, by digger

User metadata
Rank Oldbie
Rank
Oldbie
sdz wrote on 2026-09-21, 15:50:

New VOPL3 release: https://github.com/sdz-mods/VOPL3/releases/tag/A06

Main highlights:
-added DOSBox DBOPL backend. The installer now offers three OPL3 emulators: Nuked OPL3, Nuked OPL3 fast and DOSBox's DBOPL.

Thanks for the update! Maybe you can also add ymfm as an alternative OPL3 emulator? From what I understand, ymfm offers a reasonable balance between accuracy and performance. Not 100% accurate as Nuked OPL3, but quite close and perhaps not as cycle-heavy, which could help on systems with slower CPUs. Perhaps it has a better tradeoff than DBOPL? Not sure how well these two compare, but it would be nice to have more options to play with and try out.

Thanks for considering!

Reply 66 of 74, by sdz

User metadata
Rank Oldbie
Rank
Oldbie

New VOPL3 release: https://github.com/sdz-mods/VOPL3/releases/tag/A07

-Fixed silent FM music in games that look for the FM chip at the Sound Blaster's FM ports (base+8/+9, e.g. 0x228/0x229) before trying 0x388, e.g. Aspetra and other games using the DiamondWare Sound ToolKit.
SBEMUL is steered away from 0x28/0x29 as well as 0x388/0x38B, which are now trapped by VOPL3.
The installer now frees SBEMUL's FM ports through SBEMUL's own SoftFM registry setting. SBEMUL.SYS is only patched for MIDI.

@digger Thanks for the suggestion! I will look into it.

Reply 67 of 74, by sdz

User metadata
Rank Oldbie
Rank
Oldbie

New VOPL3 release: https://github.com/sdz-mods/VOPL3/releases/tag/A08

-added ymfm backend
-renderer cores are now built with gcc. They are ~2x faster compared to the Open Watcom built ones, while having bit identical output
-all four renderers (Nuked OPL3, Nuked OPL3 fast, DBOPL and YMFM) are installed and are switchable live from the GUI (when changing it does not preserve the previous chip state).
-FM sound output device can now be selected. Also applies live.
-fixed an issue where some DOS games would fail to launch

The attachment S1.jpg is no longer available

Reply 68 of 74, by digger

User metadata
Rank Oldbie
Rank
Oldbie

Thanks for implementing! 😃 What are your immediate impressions of ymfm compared to the other cores?

A 2x speedup just by switching compilers is quite impressive, by the way. Would sound emulators for DOS such as SBEMU and VSBHDA benefit from such an improvement as well by switching from Open Watcom to DJGPP, or is it specifically Windows code that benefits to such an extent?

Reply 69 of 74, by vico

User metadata
Rank Member
Rank
Member

The performance improvement with ymfm is outstanding; games feel almost as if they were running in MS-DOS using VSBHDA or SBEMU. That said, some games still need improvements—such as the sound effects in *The Jungle Book*.

For some reason, picking up multiple items in quick succession causes a noticeable drop in performance.

Thank you very much for working on this project, which is making giant strides.

P.S. I wonder if VSBHDA and SBEMU could benefit from ymfm.

Reply 70 of 74, by keenmaster486

User metadata
Rank l33t
Rank
l33t

What optimization flags had you been using in Open Watcom? I've found the performance of OW binaries to vary significantly depending on those flags.

World's foremost 486 enjoyer.

Reply 71 of 74, by sdz

User metadata
Rank Oldbie
Rank
Oldbie

@digger I'll let others judge, as they all sound very similar to me (I have never played games that make use of an FM chip until VOPL3). I can only speak of CPU usage. Averaged over a DOOM run, cores built with gcc, CPU I7 4940MX capped at 800MHz:
Nuked OPL3 15.4%
Nuked OPL3 fast 7.2%
ymfm 5.8%
DBOPL 1.0%

As for SBEMU/VSBHDA switching to DJGPP, I really don't know.

@vico I will test that game and see how it performs on my system. What CPU are you using? Do you notice a drop in performance with DBOPL?

@keenmaster486 I was using -otexan -6r -fp6.

Reply 72 of 74, by vico

User metadata
Rank Member
Rank
Member

@sdz
The performance drop in *The Jungle Book* occurs using any of the four backends, including DBOPL. When picking up items in quick succession, the sound becomes slightly distorted and the game starts to stutter.

By the way, VSBHDA and SBEMU do not play all the sound effects; some are skipped. I used to think this was a bug, but now I believe it is a deliberate strategy.

My PC is a 400MHz Pentium II with 128MB of RAM and a CS4281 PCI sound card.

Reply 73 of 74, by sdz

User metadata
Rank Oldbie
Rank
Oldbie

New VOPL3 release: https://github.com/sdz-mods/VOPL3/releases/tag/A09

-added MPU-401 intelligent mode emulation. On by default, without claiming an IRQ unless [midi] irq= is set in the .ini.
-MIDI output is now queued, so a slow MIDI interface or driver can't stall the capture side and lose bytes.
-added [midi] sysexdelay= for a synth that drops SysEx arriving too fast. Set to 0 by default.
-added [midi] irqforce= to claim an interrupt the busy-line check refuses. Off by default.
-the control panel shows the MPU-401 mode live along with MIDI stats, and [gui] mpulog=1 writes the same to C:\VOPL3\VOPLMPU.LOG.
-VOPL3.VXD is now GPL. The intelligent-mode engine is modelled on DOSBox's mpu401.cpp and bjt42's SoftMPU.

Tested the following games with an MT-32 connected via USB:
Police Quest 2
Monkey Island 2
King's Quest IV
Silpheed
A-10 Tank Killer
Monkey Island

The attachment S1.jpg is no longer available

@Vico If it happens with DBOPL as well, it's very unlikely it's CPU usage related. I will take a look (didn't get a chance to yet).

Reply 74 of 74, by vico

User metadata
Rank Member
Rank
Member

I was testing other games and found a couple that don't work very well with VOPL3:
1. Fatal Racing: the sound is fine, but performance is poor.
2. Prehistorik 2: the sound plays too fast, and right when you start a new game, the visuals freeze even though the music keeps playing.
3. The Lost Vikings: There is no sound.