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

nickculbertson

macrumors regular
Original poster
Nov 19, 2010
226
0
Nashville, TN
Hello,
I've had a great deal of trouble releasing audio. What I am trying to achieve is to hit a button which plays a sound and then hitting the button again and the sound plays again while releasing (muting) the first sound. I can do this with
Code:
if(theAudio)[theAudio release];
but the result is a pop when the audio refires.

I first tried this using the AVAudioplayer. now I'm trying to find a way with OpenAL. Any suggestions would be very appreciated.

Thanks,
Nick
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.