Sign in to follow this  
Repsa_Jih

fading out sounds (SDL, FMOD)

Recommended Posts

Repsa_Jih    122
In my game engine (based on SDL and FMOD), I will need a function to start fading out a certain sound in a given time. I programmed this, but it doesn't work at all. http://hashasp.mine.nu/paster/?2143

Share this post


Link to post
Share on other sites
samuraicrow    325
The problem might be the #define macro way up at the top. It contains a comment that will be substituted into your code and make all of the code on the line following the FADE_OUT_INTERVAL usage to be ignored.

BTW. As Rob Loach pointed out, SDL_Mixer supports fadeouts internally. SDL_Mixer has problems with looping OGGs and MP3s but if you use a music module or MIDI format it should loop fine.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this