ENIGMA Forums

General fluff => Announcements => Topic started by: time-killer-games on June 28, 2019, 10:58:38 am

Title: [Windows] OpenAL Support Explained and New Dependencies on the Wiki
Post by: time-killer-games on June 28, 2019, 10:58:38 am
We have recently updated the Windows Installation Wiki Page to reflect some missing information that explains how to get OpenAL working on Windows machines.

https://enigma-dev.org/docs/Wiki/Install:Windows

First, you'll need libmodplug installed in your MSYS2 packages. This will be required for your game executable to build properly.

Install libmodplug for 32-bit MSYS2
Code: [Select]
pacboy -S libmodplug:i
Install libmodplug for 64-bit MSYS2
Code: [Select]
pacboy -S libmodplug:x
If you want to use OpenAL for audio, instead of DirectSound, you'll want to make sure you have "libopenal-1.dll" in your game's working directory.

https://enigma-dev.org/edc/games.php?game=97

You can see below a quote below of the information and downloads for libopenal-1.dll found at the link above.

Quote
libopenal-1.dll (REQUIRED for the OpenAL Audio System on Windows)

If you want to build ENIGMA games on Windows that use the OpenAL Audio System, which is required for external sound resource loading via sound_add() and other various features DirectSound and other alternatives do not offer, you need to have this DLL in the same directory as your game executable when running and distributing your game.

- Download the 32-bit DLL and put that in the same directory as you 32-bit game executables.

- Download the 64-bit DLL and put that in the same directory as you 64-bit game executables.

- You can not put your 32-bit and 64-bit games in the same directory otherwise you will end up with a name conflict because both the 32-bit and the 64-bit DLL have the same file name and you can't rename them without breaking the ability for your games to recognize them.

Downloads (2):

Windows 32-bit (http://files.enigma-dev.org/game/97/file/1/44ddd5/Windows%2032-bit/libopenal-1.dll)

Windows 64-bit (http://files.enigma-dev.org/game/97/file/2/c9a332/Windows%2064-bit/libopenal-1.dll)

Also due to a bug with ENIGMA currently, you may also need "libgcc_s_dw2-1.dll" and "libwinpthread-1.dll" in your game executable's working directory when compiling for 32-bit specifically. This is not an issue with 64-bit, from what I can gather from my testing. You can find those in your MSYS2 installation folder, or for ease of access, you may also download them from my dropbox: Extra 32-bit DLL's.zip (https://www.dropbox.com/s/9wstcz8j08hznnq/Extra%2032-bit%20DLL%27s.zip?dl=0)

I hope this helps clear up any questions, comments, or concerns you all may have regarding this audio system.

Samuel
Title: Re: [Windows] OpenAL Support Explained and New Dependencies on the Wiki
Post by: hpg678 on June 28, 2019, 05:05:09 pm
 (Y) (Y) :dance: :dance: