Getting SE4 music work in Wine.

Author: oipii
Date: Feb 22, 2018 1:54 AM
Category: Support
Posts: 2
I always thought that music in SE4 doesn't work in Wine and one has to turn it off or the game crashes. Every source still out there (wine appdb, se4 wiki) seems to confirm it. Still, I've decided to re-check and it turns out these days the music does work after a couple of pretty standard tweaks. So, in case anybody else is interested, here is how to make it work.

The TLDR version: install native versions of amstream.dll, quartz.dll, and devenum.dll; make sure they are registered with regsvr32.exe. Use native override for quartz and devenum, and 'native, builtin' for amstream.

Detailed instructions on installing se4 from scratch in a fresh wine prefix.

Requirements: wine, winetricks, se4.
Create a fresh Wine prefix. 32-bit is recommended, although 64-bit seems to work as well:

$ export WINEPREFIX=~/.wine32-se4
$ WINEARCH=win32 winecfg

Wait for winecfg to finish creating prefix. While you are in winecfg go to the Graphics tab and either uncheck 'Allow the windows manager to control the windows' or check 'Emulate a virtual desktop', 1024x768. Either setting would prevent problems with placement of certain dialogs (most notably, combat sim results); use the former if you want to run the game full screen and the latter if you prefer it to be windowed.
Close winecfg.

Now, install amstream and related stuff:

$ winetricks amstream quartz devenum
$ wine regsvr32 amstream.dll

The last command should say "Successfully registered DLL 'amstream.dll'". Ignore TLB errors if any.

That's all, although we still have to install the game itself. If you have the steam version, use

$ winetricks steam

to install steam. Otherwise run whatever setup you have or copy your existing installation.

After the installation make sure music is enabled in Data/Settings.txt:

Allow CD Music := TRUE

It should work now.
Tested with wine 3.1 and se4 1.95 deluxe (both steam version and strategy first installer).


Commenter: NeuroCPU
Date: May 24, 2019 1:51 PM
Getting SE4 music work in Wine.
so mp3's from Music/ dir are played ok? without any noise? are song loops are unnoticeable or not?