|Dec 18, 2008, 12:11 AM||#1|
AudioServicesPlaySystemSound(soundID) - How to STOP a sound?
I am playing a sound effect that is about 5 seconds long with the calls above. How do I stop the sound right in the middle of it playing?
|Dec 18, 2008, 02:50 PM||#2|
You can't. If you can target the 2.2 SDK, you can use the AVAudioPlayer class, which makes manipulating sound a LOT easier than it was in 2.0/2.1
kyle [at] bigsprocket.com
http://www.bigsprocket.com -- iPhone programing and goodies!
|Dec 18, 2008, 05:38 PM||#3|
There's no method to pause it (which is why most people use AudioQueue or OpenAL) or stop it (in a sense where you're simply stopping the sound ready to be played again), but you can use the AudioServicesDisposeSystemSoundID which will theoretically stop the sound.
|Thread Tools||Search this Thread|
|thread||Thread Starter||Forum||Replies||Last Post|
|How do I stop stop the annoying email notification sound in Safari||kmdonovan1||Mac Basics and Help||4||Mar 18, 2014 04:52 AM|
|MBP + USB sound card = noticeably better sound?||Meroigo||Buying Tips and Advice||8||Dec 9, 2013 03:20 AM|
|odd behavior with sound, have to unplug headphones, then plug to get sound||Sossity||Mac Basics and Help||1||Dec 2, 2013 01:13 AM|
|Annoying sound on iMac 27" (sound uploaded)||SSSmAsHeRRR||iMac||9||Nov 5, 2012 09:19 PM|
|Mountain Lion installed but no sound, system preferences or sound related apps.||rickmusik||OS X 10.8 Mountain Lion||3||Aug 2, 2012 01:55 PM|
All times are GMT -5. The time now is 05:55 PM.