Pages: « 1 2
  Print  
Author Topic: sprite_add not working?  (Read 8881 times)
Offline (Unknown gender) RobotiX
Reply #15 Posted on: January 20, 2015, 08:15:39 pm

Member
Location: Pomona, CA
Joined: Jan 2015
Posts: 5

View Profile
Quote
It looks like we never actually even outlined the function. I can give you the basic steps to add it though.
First outline the function in the general header https://github.com/enigma-dev/enigma-dev/blob/master/ENIGMAsystem/SHELL/Audio_Systems/General/ASbasic.h#L62
it should be the same path in your local enigma-dev copy regardless of how you installed. By outlining it there it ensures the parameter and return types are the same for every system.
Then you just add the body of the function in https://github.com/enigma-dev/enigma-dev/blob/master/ENIGMAsystem/SHELL/Audio_Systems/DirectSound/DSbasic.cpp#L92
or https://github.com/enigma-dev/enigma-dev/blob/master/ENIGMAsystem/SHELL/Audio_Systems/OpenAL/ALbasic.cpp#L152
for OpenAL. That's really all you need to do and the function will be usable, you could also send us a pull request on GitHub and we may merge it so long as you write the code neatly to match the other functions in the files.

Are you suggesting I try writing the sound_fade function? I'd be interested to learn but I know very little about the inner workings of ENIGMA or OpenAL...
I guess you gotta start somewhere though...
Logged
Offline (Male) Goombert
Reply #16 Posted on: January 22, 2015, 09:13:39 pm

Developer
Location: Cappuccino, CA
Joined: Jan 2013
Posts: 2993

View Profile
Haha, no I was merely pointing out that it is really easy to add new functions, just like you would in your own self contained game or C++ program, it's extremely trivial.

On a side note I also managed to get the latest 32 bit branch working again with sorloks gif fixes and my 64 bit compiler fixes, and the image loaded fine for me from the working directory simply calling it "file.png"

So Darkstar2's version probably just got broken or out of sync somehow.

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.

Pages: « 1 2
  Print