★ TouchArcade needs your help. Click here to support us on Patreon.

Extended SimpleAudioEngine

01-20-2013, 07:10 PM
Extended SimpleAudioEngine

I have created an extension to SimpleAudioEngine that is opensource and free to use if anyone is interested. If the mods approve I will submit a link to it. I want nothing in return for it just looking to help out the community as it has helped me.

The basics of what it can do that SimpleAudioEngine cannot is built in toggle for mute/unmute (with an option to fade in/out), fade in/out background music to whatever level you want (and take as little or as much time as you want to perform the fade) and it also has the ability to save whatever volume levels you decide you want for your game i.e. if you want the background music to be at 0.5 and sound effects at 0.75 you do it once and then it saves those values and uses them everytime the game is opened (there is also a function built in so you can change the default values).
01-20-2013, 07:33 PM
Joined: Jul 2011
Location: The red Skittle
Posts: 5,813
We approve. Why wouldn't we?
(as long as it's not a dodgy link or anything)

Need professional proofreading, editing or writing that won't break your budget?
Contact me at youarelowonhealth.com or via PM.
01-20-2013, 08:19 PM
haha well I know some people get upset about randomly posting links

http://www.brandonlassiter.com/portfolio/sound-manager - Download Page
http://www.brandonlassiter.com/portf...-documentation - Documentation Page
01-20-2013, 08:21 PM
Let me know what you guys think! Also if you have any suggestions of other things to add to it I will try to update it accordingly
01-21-2013, 03:43 PM
Just updated it with a few things:

1. Added pauseBGMusic. (Ability to pause background music)
2. Added resumeBGMusic. (Resume background music when paused)
3. Fixed bug for background music looping.
4. Added preloadSoundtrack. (Preload multiple audio files at once loaded into an array)
5. Added playSoundtrack. (Plays through the preloaded soundtrack)
6. Added stopSoundtrack. (Stops playing the soundtrack)

If there is anything anyone can think of to make this better let me know
01-24-2013, 10:47 AM
Joined: Dec 2012
Location: Busan, Rep of Korea
Posts: 6
Thanx for sharing your work
I'll try it later