Please do not post the same thing multiple times. The board software automatically flags certain posts as needing moderator attention. This happens the most often for new users. I'm pretty sure this is made clear at the time you attempt to post. Posting the same thing over and over again just makes that many more posts the moderators have to weed through later. This makes us sad. Don't make us sad. If your post/thread doesn't appear, just wait a while. Don't post it again. If it hasn't shown up by the next day, then you can try again. I normally go through posts in the mornings, and try to check a few times throughout the day, but I'm not here 24/7. There will typically be a significant delay before posts are approved. Just be patient.
Detecting when sound finishes playing in "Crash Landing" Sound Engine
I am using the sound engine class in apple's sample "Crash Landing" app for my audio needs, and I was curious if there was some kind of way to detect when a sound has finished ending and to take action at that moment; similar to the way you can fire a function at the end of an animation block. I tried looking through the .cpp file but I got a little lost. Any help you can offer would be much appreciated. Thanks!
I am using the sound engine class in apple's sample "Crash Landing" app for my audio needs, and I was curious if there was some kind of way to detect when a sound has finished ending and to take action at that moment; similar to the way you can fire a function at the end of an animation block. I tried looking through the .cpp file but I got a little lost. Any help you can offer would be much appreciated. Thanks!
SoundEngine is layered on top of OpenAL. I'm certainly not an expert on OpenAL, but I'm pretty sure that there isn't any way to register a callback for when a sound has finished playing in OpenAL, so the functionality can't be easily implemented in SoundEngine. About the best that you can do is extend the SoundEngine API to test for whether the effect is still playing. I've done this in our working copy of SoundEngine, and would be happy to share with you, if you're interested.
Replies
[IMG]http://www.omegasoftweb.com/omega/omegasoftIconBanner.png[/IMG]
Aura Trainer | <a href="http://bi
- Spam
- Abuse
- Troll
0 • Off Topic Insightful Disagree Dislike Like Awesome- Spam
- Abuse
- Troll
0 • Off Topic Insightful Disagree Dislike Like Awesome- Spam
- Abuse
- Troll
0 • Off Topic Insightful Disagree Dislike Like AwesomeGood Luck,
dean
BluMtnWerx
Developers of:
- Spam
- Abuse
- Troll
0 • Off Topic Insightful Disagree Dislike Like AwesomeI have not figured out a way to use it to stop an animation in progress...
- Spam
- Abuse
- Troll
0 • Off Topic Insightful Disagree Dislike Like Awesome