SoundBlaster support on VMWare Player

Well it’s kind of skinny to be honest.  It works, Kinda though.

You can either have AdLib/OPL3 emulation, OR the PCM/Wave.

You can’t do both at the same time.

Really.

Edit the .vmx file, and look for the sound section..

sound.present = “TRUE”
sound.virtualDev = “sb16”
sound.opl3.enabled = “TRUE”
sound.autodetect = “TRUE”
sound.baseAddr = “0x220”
sound.dma16 = “7”
sound.dma8 =”1″
sound.irq = “5”
sound.mpu401baseAddr = “0x330”
sound.Opl3BaseAddr = “0x388”

And add in something like this.  To get the opl3 emulation set it to TRUE, but the PCM won’t work.  Set it to false and you’ll get sound.

And of course set your environment variable for MS-DOS

SET BLASTER=A220 I5 D1 H7 P330 T6

yay.

I’ve tested it with Doom v1.1, and it works.  Of course you can ‘cheat’ and setup a network game, with one player with Adlib, and the other with the Sound Blaster.  But I know that’s crazy!

This entry was posted in VMWare by neozeed. Bookmark the permalink.
avatar

About neozeed

What is there to tell? I've loved UNIX like things since I was first exposed to QNX in highschool (we had the Unisys ICONS!), and spent the better time of my teenage years trying to get my own UNIX... I should have bought Coherent in retrospect.. Anyways latched onto Linux in 1992, and then got some old BSD admin books and have been hooked on the VAX BSD & other big/ancient things since...!

10 thoughts on “SoundBlaster support on VMWare Player

  1. Hi! I’m the VMware engineer who wrote the OPL3 emulation. I did it in my free time as a random bit of fun and hackery, and I hope this totally-unsupported feature provides a bit of fun for you and your readers too.

    Sadly, it hasn’t yet been possible to make the OPL3 emulation coexist with the SB16’s PCM/wave emulation… The programming models used internally to generate sound for these two emulated devices are about a decade apart, which makes for a huge challenge, and I am sure you understand that OPL3 support is not going to be a top business priority. Maybe when I find a bit more free time… And I need to code up the OPL3’s rhythm instruments too. 🙂

    Meanwhile… OPL3 plus Adlib Tracker II satisfies my craving for retro music. Enjoy!

    • It doesn’t surprise me that the code has drifted somewhat… But it must be nice to know that people appreciate the work!

      • Indeed it is cool to hear of folks using it. I really do hope to finish it up at some point in the future though… I know that Doom without PCM audio is … meh. Not nearly as much fun as it should be. 🙂

  2. @dariusd – From what I heard the entire US VMWare team was disbanded earlier this year. I take it the AdLib/OPL3 & PCM/Wave was never made compatible?

    Side note, by using QEMU I got much farther than I ever have with VirtualBox or Virtual PC 2007 getting the DOS sound in my old game MegaRace to work. I actually got it to work a few times though I can’t get it to consistently work. The next time I boot up the game even after making no config changes it will no longer work. I never got this far in the other two VM programs. Perhaps QEMU will continue to improve and one day work. I know I could use Dosbox but that’s just not as fun 🙂

    • You should try PCem! It runs the old BIOS’s and is just as painful to setup as the real thing!

      It’s really cool, and really painful to remember how much PC’s of the 80’s and 90’s were.

    • Yes, the ongoing development of the VMware Workstation Pro, VMware Workstation Player and VMware Fusion products have been moved to new teams in Beijing, and they no doubt have their hands full getting up to speed with these very complicated software projects!

      Besides the loss of the awesome and fun gang of hosted UI engineers/crazies/friends, those of us working on the virtualization engine and virtual devices are relatively unaffected. I’ve still been working away slowly on improving Adlib/OPL3 and its coexistence with SB16 PCM, in my “free time”.

      As a shameless tease of stuff that’s in the pipeline: I have Adlib/OPL3 + SB16 PCM actually working together on a private build of Fusion, but not yet reliably working on Workstation Pro/Player — the homogeneity of OS X systems makes this much easier to get running on Fusion! I’ve also massively reduced the CPU burden of Adlib/OPL3 emulation and improved many aspects of the OPL3 timers to better handle some weird corner cases that the currently-released products don’t handle so well.

      I wouldn’t hold your breath waiting for SB16 to suddenly make great leaps forwards in the released products, though. It’ll take a lot more work to turn my hackery into something that we can actually ship to customers, and this pesky “job” thing keeps getting in the way by expecting me to do “serious” things… 😉

      shakes fist at reality

      We’ll get there. Some day.

  3. I know that this post has aged, but I’d love to see this working. I have been searching for years for a product that can replicate the original experience. Is there any hope?

    • Yes, there is hope, but there’s not much to show right now.

      The latest Tech Preview of VMware Workstation includes some relatively minor OPL3 tweaks and bugfixes so that the FM audio output is even more faithful to the original hardware, and as a bonus it also places much less burden on the host CPU — Earlier versions of Workstation struggled to play some more complex pieces of music even on a fast host system… with the latest Tech Preview, that’s no longer the case.

      Simultaneous PCM and FM output will still need a bit more work before it’s ready. It’s on my to-do list — as is getting it working in VMware Fusion. Sorry it’s not making observable progress. I work on this fun stuff when I can… and mostly that’s on the weekends…

Leave a Reply

Your email address will not be published.

Notify me of followup comments via e-mail. You can also subscribe without commenting.