Pages: 1
  Print  
Author Topic: audio_play_sound unknown function on windows installer (win10)  (Read 10502 times)
Offline (Unknown gender) Gomeisa
Posted on: February 24, 2022, 06:33:47 am
Member
Joined: Dec 2019
Posts: 2

View Profile
Hello,
Firstly, thank you so much Enigma-dev people to share again a windows installer (I lost the previous installer years ago). As a person who teach how to create video games to children, it is very good news that the kids have access to this game dev tool again.

I tested enigma with a old project and got Unknown function or script `audio_play_sound' . I found [url https://enigma-dev.org/forums/index.php?topic=3040.msg27739]this topic[/url] on the forum, but I don't understand the answer as it is for non-installer versions. I understood I have to put libopenal-1.dll in my game's working directory : but at that moment, I don't have exported yet so I don't have a game directory. I tried tu put the .dll in msys64 folder and enigma-dev folder, even in the folder that contains the .gmx file. Nothing works.

I'm sorry, I may lack some understanding/knowledge with this. May someone help me with this ? I'm using the windows installer release on Windows 10
Thank you for your time and help, and for the amount of work the comunity put in enigma :)
Logged
Offline (Male) hpg678
Reply #1 Posted on: February 27, 2022, 02:46:21 am

Member
Location: Barbados
Joined: Mar 2017
Posts: 283

View Profile Email
Greetings................. :)
quick and easy fix would be to use the function    sound_play(name of sound file)

i've also experienced trouble using the audio_play_sound function in the past.
Logged
[compromised account]
Offline (Unknown gender) Gomeisa
Reply #2 Posted on: February 27, 2022, 12:41:24 pm
Member
Joined: Dec 2019
Posts: 2

View Profile
Thank you hpg678 it is working fine  (Y)
I wonder if there is a list of function that used to work but does'nt anymore.
Logged
Offline (Unknown gender) time-killer-games
Reply #3 Posted on: March 05, 2022, 06:09:30 pm
"Guest"


Email
It's not broken, you just need to distribute dll's with your game and OpenAL will work again.

Here's the files you need:

https://drive.google.com/file/d/1gagR9bycmIQKRCKQyhMpTvwEk5mXezcE/view?usp=sharing

put them in the working directory of your game.
Logged
Pages: 1
  Print