lolman
|
|
Posted on: July 13, 2013, 01:53:38 pm |
|
|
Joined: Jul 2013
Posts: 5
|
Hi there! I'm new to Enigma and was trying to write a EDL script to play music on the room creation. But when I run the game it crashes with error no -1073741819. Since I'm a newbie I cannot find what causes the error!
What I did is the following.
1) First I added a sound by loading a mp3 file and set the 'Kind' to background music. 2) Inside the room creation code I wrote the following codeaudio_play_music(snd_0,true);
Nothing more.
|
|
|
Logged
|
_LOLMAN_
|
|
|
|
Josh @ Dreamland
|
|
Reply #2 Posted on: July 13, 2013, 06:59:50 pm |
|
|
Prince of all Goldfish
Location: Pittsburgh, PA, USA Joined: Feb 2008
Posts: 2950
|
ENIGMA can load MP3's fine. Which audio system do you have set, lolman? It'll be under Enigma Settings, in the APIs tab.
|
|
|
Logged
|
"That is the single most cryptic piece of code I have ever seen." -Master PobbleWobble "I disapprove of what you say, but I will defend to the death your right to say it." -Evelyn Beatrice Hall, Friends of Voltaire
|
|
|
|
|
|
lolman
|
|
Reply #6 Posted on: July 14, 2013, 10:52:19 am |
|
|
Joined: Jul 2013
Posts: 5
|
'k!
|
|
|
Logged
|
_LOLMAN_
|
|
|
|
Goombert
|
|
Reply #8 Posted on: July 14, 2013, 11:08:41 am |
|
|
Location: Cappuccino, CA Joined: Jan 2013
Posts: 2993
|
Harri, blame that on IsmAvatar Also, I am sorry the audio functions are not documented on the Wiki yet, I just did all string functions this morning and am currently working on path functions of which I have half done.
|
|
|
Logged
|
I think it was Leonardo da Vinci who once said something along the lines of "If you build the robots, they will make games." or something to that effect.
|
|
|
lolman
|
|
Reply #9 Posted on: July 14, 2013, 11:25:23 am |
|
|
Joined: Jul 2013
Posts: 5
|
Also there is an issue with the play button in audio loading window. It will not play on every click, sometimes it will wait and then play the sound and sometimes not! I don't know if the problem is only for me. Also I want to ask you an another question. When is wxEnigma releasing? Thanks, TheExDeus. I changed my project extension to .egm
|
|
« Last Edit: July 14, 2013, 11:26:56 am by lolman »
|
Logged
|
_LOLMAN_
|
|
|
|
lolman
|
|
Reply #11 Posted on: July 14, 2013, 01:10:46 pm |
|
|
Joined: Jul 2013
Posts: 5
|
ok.
|
|
|
Logged
|
_LOLMAN_
|
|
|
|