I am implementing a sound effect that plays while a user is dragging a UISlider.

Here is the IBAction: called by the UISlider's Value Changed event

-(IBAction)playTone4; {

I would like the sound to halt when the user is not dragging the slider but has not released it.

Is there a way to do that? There doesn't seem to be an AudioServicesStopSystemSound() function.

Was it helpful?


System sounds cannot be stopped.

See the iPhone Programming Guide: section Multimeda Support for more information.

To accomplish the desired effect, I would recommend using AVAudioPlayer or audioQueues. The Programming Guide I addressed covers everything you want to know about these techniques.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top