Pages: 1
  Print  
Author Topic: Error Unknown function or script `audio_play_sound'  (Read 22177 times)
Offline (Unknown gender) ojars
Posted on: August 27, 2019, 03:31:21 pm
Member
Joined: May 2019
Posts: 16

View Profile
Hi all, I got an error Unknown function or script `audio_play_sound' in my game. After that I created new game with only create event and that function and another .wav file and got the same error.
Quote
Event[0, 0] Check `o_game::create...Syntax error in object `o_game', Create event:0:
Line 1, position 18 (absolute 17): Unknown function or script `audio_play_sound'

In the Game settings Platform is Windows, Graphics was set to Direct3D 11.0 and Audio to DirectSound. After the error I switched Gaphics to OpenGL 3.3 and Audio to OpenAl, and got another error
Quote
D:/Programmas/MSYS2/mingw32/bin/../lib/gcc/i686-w64-mingw32/7.4.0/../../../../i686-w64-mingw32/bin/ld.exe: cannot find -lmodplug
collect2.exe: error: ld returned 1 exit status
make[1]: *** [Makefile:139: compile_game] Error 1
make[1]: Leaving directory '/d/Programmas/ENIGMA/enigma-dev/ENIGMAsystem/SHELL'
make: *** [Makefile:20: Game] Error 2
Where is my mistake?
Logged
Offline (Unknown gender) time-killer-games
Reply #1 Posted on: August 29, 2019, 08:27:19 am
"Guest"


Email
You need to use OpenAL instead of DirectSound for this.

https://enigma-dev.org/forums/index.php?topic=3006.0

Install instructions can be found there, which will fix the error.
Logged
Offline (Unknown gender) ojars
Reply #2 Posted on: August 29, 2019, 10:55:16 am
Member
Joined: May 2019
Posts: 16

View Profile
Thank you, this works.
Logged
Pages: 1
  Print