Is there any way to stop a sound started with playEventSound(ID)? I desperately need this.
Thanks,
.phil [import]uid: 4366 topic_id: 357 reply_id: 300357[/import]
Is there any way to stop a sound started with playEventSound(ID)? I desperately need this.
Thanks,
.phil [import]uid: 4366 topic_id: 357 reply_id: 300357[/import]
Currently there isn’t a way to stop an event sound while it’s in progress; the theory was that event sounds would be quite brief. But I know there are cases where actual sound effects are kind of long, and it would be useful to be able to turn them off.
Is this the kind of thing you could do with media.playSound() and media.stopSound() instead? Obviously, the limit there is one sound at a time. [import]uid: 3007 topic_id: 357 reply_id: 642[/import]
Unfortunately no, media.playSound() would not work for my application since I need to play multiple sounds simultaneously. In poking around the iPhone documentation, I’m guessing that you are using AudioServicesPlaySystemSound() which does not appear to have a way to stop the sound - though would it stop if you destroyed the the sound ID object?
Ideally, I’m hoping you will implement the more robust AVAudioPlayer class, or even better, OpenAL. We might even consider helping fund that (and the AVAudioRecorder class), but obviously that may not fit your business model or plans.
.phil [import]uid: 4366 topic_id: 357 reply_id: 714[/import]