iDevGames Forums
sound effects when shooting - Printable Version

+- iDevGames Forums (http://www.idevgames.com/forums)
+-- Forum: Development Zone (/forum-3.html)
+--- Forum: iPhone, iPad & iPod Game Development (/forum-11.html)
+--- Thread: sound effects when shooting (/thread-885.html)



sound effects when shooting - 9livesoftware - Aug 7, 2009 09:41 AM

What is the source code for when you tap on the screen to shoot. A shooting sound effect plays? Thanx


sound effects when shooting - kendric - Aug 7, 2009 12:47 PM

Look up AVAudioPlayer. It makes it pretty easy to play music and wavs.


sound effects when shooting - 9livesoftware - Aug 8, 2009 10:06 AM

Ive used AVAudio Player many times but when ever I run my game on the simulator i always get the error saying that AvAudioPlayer was not found could you help me please.


sound effects when shooting - Newbrof - Aug 9, 2009 02:51 PM

I use in a puzzle game audio system sounds for short sound effects.. very easy to use and sufficient

System Sound Services (AudioToolbox.framework) is a collection of C functions and it can be used to play short sounds of 30 seconds or less

for music I would use AVAudioplayer (but there are some issues with compressed files, don't try to play 2 files at the same time)

regards

Quote:AvAudioPlayer was not found could you help me please.

maybe you should include the AV foundation framework and/or the AudioToolbox framework