Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

Darkroom

Guest
Original poster
Dec 15, 2006
2,445
0
Montréal, Canada
i'm building a basic sound engine. i'm using AVAudioPlayer for music, and OpenAL for short sound effects. i've run into a pitfall, where i can not stop a music track with AVAudioPlayer without also stopping a looping (or playing) OpenAL sound effect. is it possible for OpenAL to ignore AVAudioPlayer's stop method if it's currently playing? any ideas?

[EDIT] oh, nevermind. i'll just use AVAudioPlayer as a global sound controller and play/stop/pause/etc. all my effects and music with OpenAL for more control. if anyone can offer a reason why i shouldn't do this please let me know so that i can avoid other potential problems.
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.