|
Build 229 (29/11/2026, Entwickelt von J.P.M.) |
Readme/What's new |
VSBDOS - Sound Blaster and VESA for DOS sessions under ArcaOS
Experimental release, build 229
=====================================================================
!!! HIGHLY EXPERIMENTAL SOFTWARE - USE AT YOUR OWN RISK !!!
VSBDOS is a virtual device driver (VDD) that runs in ring 0, i.e.
inside the OS/2 kernel. A fault in such a driver can trap or hang
the whole system, abort DOS sessions without warning, and may cause
loss of unsaved data. It patches running DOS games in memory.
This software is provided "AS IS", WITHOUT ANY WARRANTY of any kind,
express or implied, including but not limited to fitness for a
particular purpose. The author accepts NO LIABILITY for any damage,
data loss or malfunction, and gives NO GUARANTEE that it works.
Test it in a virtual machine first. Before installing on real
hardware, make sure you can boot a backup of CONFIG.SYS from the
boot menu (Alt+F1).
What it is
----------
VSBDOS gives DOS sessions under OS/2 / ArcaOS a virtual Sound Blaster
2.0 (digital sound and AdLib/OPL3 music) and a built-in VESA BIOS
(VBE 2.0). Known problems of some games are fixed at run time in
memory; game files on disk are never changed.
DOS game -> VSBDOS.SYS (VDD) -> VSBD.EXE (daemon) -> DART -> Uniaud
Nuked OPL3 + PCM mixer
Emulated card: Sound Blaster 2.0, DSP 2.01, A220 I7 D1 T3
8-bit mono, single-cycle and auto-init DMA
AdLib (388h) and SB FM (228h/229h) via Nuked OPL3
Not supported: Sound Blaster Pro (stereo), SB16 (16-bit), MPU-401
Requirements
------------
- ArcaOS 5.1 (traditional/BIOS boot). Developed and tested in
VirtualBox 7.2 without UEFI. Real hardware is still being tested.
- A working DART audio driver (e.g. Uniaud).
- The VESA BIOS needs the VirtualBox graphics adapter. Without it the
VESA part stays inactive; sound still works.
Files
-----
VSBDOS.SYS the driver (goes to C:\OS2\MDOS)
VSBD.EXE sound output daemon (OPL3 synthesis, PCM, DART)
VSBSTAT.EXE status display and settings (OS/2)
SBTEST.EXE DOS test program (card detection, DMA, /CLOCK)
README.TXT this file
LICENSE.TXT license of VSBDOS (GNU GPL v2)
LICENSE-NukedOPL3.txt license of Nuked OPL3 (LGPL 2.1)
SRC\ source of Nuked OPL3 and of VSBD.EXE (see License)
Installation
------------
1. Copy the driver:
copy VSBDOS.SYS C:\OS2\MDOS
2. Add this line to CONFIG.SYS, next to the other
DEVICE=C:\OS2\MDOS\... lines:
DEVICE=C:\OS2\MDOS\VSBDOS.SYS A220 I7 D1 T3 /VESA
A220 port address (hex)
I7 IRQ
D1 DMA channel
T3 card type as in BLASTER (3 = SB 2.0)
/VESA install the VESA BIOS in every DOS session (full screen)
Without parameters A220 I7 D1 T3 is used.
3. Add to AUTOEXEC.BAT:
SET BLASTER=A220 I7 D1 T3
4. Copy VSBD.EXE, VSBSTAT.EXE and SBTEST.EXE to a directory of your
choice, e.g. C:\VSBDOS, and reboot.
5. After every boot start the daemon, e.g. with a program object in
the Startup folder (Settings: "Start minimized"):
Path: C:\VSBDOS\VSBD.EXE
Parameters: -q
VSBD must keep running while you play; -q suppresses the status
line.
Then start DOS games in a full-screen DOS session. In the game's sound
setup choose "Sound Blaster" (220 / IRQ 7 / DMA 1) and, for music,
"AdLib" or "Sound Blaster FM".
Recommended DOS session setting: HW_TIMER = ON.
To uninstall, remove the DEVICE= line from CONFIG.SYS and reboot.
Usage
-----
VSBD.EXE
VSBD normal operation, status line every second
VSBD -q quiet: no status line (for everyday use)
VSBD -t sound test without the driver (short melody)
VSBD -n 6 more buffers, or
VSBD -b 1024 bigger buffers, if you hear crackling
Ctrl+C stops VSBD and releases the audio device.
VSBSTAT.EXE
VSBSTAT shows configuration, counters and the game fixes
that were applied. Best redirected to a file:
vsbstat > STAT.TXT
VSBSTAT -a 0 switch off all run-time game patches
VSBSTAT -a 1 switch them on again
VSBSTAT -g <n> Red Alert: scroll speed in percent (default 100)
VSBSTAT -j <ms> Warcraft II: ms per scroll step (default 100),
set before starting the game
SBTEST.EXE (in a DOS session)
SBTEST detects the card and plays a DMA test
SBTEST /CLOCK checks whether timer ticks (INT 08h) arrive
Games tested by the author
--------------------------
"Runs" means the game starts and is playable; sound is not perfect in
every game yet. More games will follow.
Commander Keen 4-6, Wolfenstein 3D, Doom II, Duke Nukem 3D,
Command & Conquer: Red Alert, Warcraft II, GTA, SimCity 2000,
Tomb Raider, Math Rescue
Known issues
------------
- In VirtualBox, the Arca Noae CLOCK01.SYS does not deliver timer
ticks (INT 08h) to a DOS session while a DOS program is busy; they
arrive later in a burst. Games that depend on the timer may hang or
run unevenly. SBTEST /CLOCK shows the effect. A ticket is open at
Arca Noae. Real hardware seems not to be affected.
- Do not switch sessions (Ctrl+Esc, window list) while Warcraft II or
GTA is running.
- Switch off VirtualBox mouse integration in games (Host+I).
- If full-screen DOS sessions fail even without VSBDOS, SVGADATA.PMI
may be damaged: run "svga on" in an OS/2 session and reboot.
Design notes and contributions
------------------------------
VSBDOS is one possible approach, not the only one. The sound output
runs in a separate program (VSBD.EXE) because a VDD runs in the
kernel and cannot use DART, and OPL3 synthesis is better kept out of
ring 0. Other designs are certainly possible, e.g. talking to the
audio driver directly, emulating other cards (SB Pro, SB16, GUS) or
handling game problems in a different way.
Once the source is published, everyone is welcome to improve it,
take it in a new direction or build something better on top of it.
Ideas, test reports and patches are very welcome.
Reporting problems
------------------
Please report in the OS2World forum thread and attach the output of
vsbstat > STAT.TXT
taken right after the problem, plus game name and version.
License
-------
VSBDOS (VSBDOS.SYS, VSBD.EXE, VSBSTAT.EXE, SBTEST.EXE)
Copyright (C) 2026 JPM. Written with the help of Claude (Anthropic).
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or (at
your option) any later version. See LICENSE.TXT.
VSBDOS contains no code from the IBM DDK.
Source code: the source of VSBD.EXE is included in the SRC directory.
The complete source code of VSBDOS will be published later. Until
then, as provided by section 3(b) of the GPL v2, the author offers the
complete corresponding source code to anyone on request, valid for at
least three years from this release. Ask in the OS2World forum thread.
VSBD.EXE contains Nuked OPL3 (Copyright (C) 2013-2020 Nuke.YKT),
unmodified, under the GNU Lesser General Public License 2.1, see
LICENSE-NukedOPL3.txt. Its source, and the source of VSBD.EXE needed
to rebuild it, are in the SRC directory (see SRC\BUILD.TXT).
|
Add new comment