Pages: 1
  Print  
Author Topic: [Windows] OpenAL Support Explained and New Dependencies on the Wiki  (Read 11511 times)
Offline (Unknown gender) time-killer-games
Posted on: June 28, 2019, 10:58:38 am
"Guest"


Email
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

Windows 64-bit

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

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

Samuel
« Last Edit: June 28, 2019, 12:36:52 pm by Transitive Property » Logged
Offline (Male) hpg678
Reply #1 Posted on: June 28, 2019, 05:05:09 pm

Member
Location: Barbados
Joined: Mar 2017
Posts: 283

View Profile Email
 (Y) (Y) :dance: :dance:
Logged
[compromised account]
Pages: 1
  Print