M-HT / SR

A project to statically recompile following games to create Windows or Linux (x86 or arm) versions of the games - Albion, X-Com: UFO Defense (UFO: Enemy Unknown), X-Com: Terror from the Deep, Warcraft: Orcs & Humans, Septerra Core: Legacy of the Creator, Battle Isle 3: Shadow of the Emperor
317 stars 18 forks source link

Albion: SDL2 Windows version crashes to desktop #26

Closed MIuIddy closed 3 years ago

MIuIddy commented 3 years ago

The SDL1 version works fine, but with the new SDL2 version I get this behavior:

nativewindows/wildmidi/adlmidi: The game freezes for one second and then exits without an error message, as soon as you can see Tom in his cabin. The crash happens before you could hear any sound, except for the intro, which works fine.

bassmidi: You can click the text box away and move around in the cabin, but as soon as you interact with anything, the game freezes for one second and then exits without an error message. There is no sound, except for the intro.

sdl_mixer: Seems to be working fine. No crashes and sound is working.

M-HT commented 3 years ago

What version of Windows are you using?

MIuIddy commented 3 years ago

Windows 10 Education 20H2

M-HT commented 3 years ago

I tested SDL2 version on Windows 10 Education 20H2 and everything worked fine. In your case, since audio works in the intro and not otherwise, it looks like some problem with sdl_mixer when using midi plugins, but I have no idea what it could be. You can use the SDL1 version, since it works.

MIuIddy commented 3 years ago

I did some additional testing and discovered, that the problem only occurs, when your audio output device is configured to use more than 2 speakers.

M-HT commented 3 years ago

I can simulate the crash now, so I'll try to fix the problem.

M-HT commented 3 years ago

Albion release version 1.7.1 contains a fix for this issue.