sound effects when shooting

Apprentice
Posts: 13
Joined: 2009.08
Post: #1
What is the source code for when you tap on the screen to shoot. A shooting sound effect plays? Thanx
Quote this message in a reply
Member
Posts: 306
Joined: 2009.03
Post: #2
Look up AVAudioPlayer. It makes it pretty easy to play music and wavs.
Quote this message in a reply
Apprentice
Posts: 13
Joined: 2009.08
Post: #3
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.
Quote this message in a reply
Member
Posts: 24
Joined: 2009.08
Post: #4
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
Quote this message in a reply
Post Reply