iphone Programming Glossary: audiopalyer
How to play MIDI on the iPhone? http://stackoverflow.com/questions/2551568/how-to-play-midi-on-the-iphone
iphone, how to play sound even in silent or mute mode? http://stackoverflow.com/questions/2749066/iphone-how-to-play-sound-even-in-silent-or-mute-mode Util getFileFullPathFromSysDoc filePath NSURL soundFileURL NSURL fileURLWithPath filePath NSError error AVAudioPlayer audioPalyer AVAudioPlayer alloc initWithContentsOfURL soundFileURL error error if nil audioPalyer AppTrace3 self @ Faild to play soundFileURL.. NSError error AVAudioPlayer audioPalyer AVAudioPlayer alloc initWithContentsOfURL soundFileURL error error if nil audioPalyer AppTrace3 self @ Faild to play soundFileURL error return FALSE audioPalyer prepareToPlay audioPalyer setVolume 5 audioPalyer.. soundFileURL error error if nil audioPalyer AppTrace3 self @ Faild to play soundFileURL error return FALSE audioPalyer prepareToPlay audioPalyer setVolume 5 audioPalyer setDelegate self audioPalyer.numberOfLoops 10 audioPalyer play thanks.....
|