0

In my game one audio is paying using

[[SimpleAudioEngine sharedEngine]playeffect:@"audio.aac"]; function .

When I touch one sprite I played another audio which 1 sec.

My problem is that my first "audio.aac" stops when I touch sprite continuously for 8 - 10 times, any solution for it.

Help will be appreciated.

Guru
  • 21,652
  • 10
  • 63
  • 102
Sukeshj
  • 1,503
  • 1
  • 19
  • 25

2 Answers2

0

You have to use .wav 44100 Hz 16 bit stereo of .caff formats to play multiply sound effects at once.

Andrew
  • 24,218
  • 13
  • 61
  • 90
  • i didn't get you .. i have two different file to play one is of 2min and other is 1sec. while i am playing 1sec. file first file is going to mute .. – Sukeshj Aug 01 '11 at 06:57
0

You could use

[[SimpleAudioEngine]sharedEngine]playBackroundMusic:@"backgroundmusic.aac"];

to have the 2 minute clip loop while your playEffect runs separately.

Ethan Lee
  • 178
  • 1
  • 10
  • I don't understand what your goal is...so you have background music playing, and a two-minute AND a one-second clip. Do you want the two-minute clip to mute while you are playing the one-second one? Or do you want to overlap the two? – Ethan Lee Aug 12 '11 at 20:03
  • i have one background music playing continuously . while going on one scene i played one two min audio . when i touch one sprite 1sec sound will be played .. so if i touch that sprite continuously 1sec audio plays right but after few time 2 min audio get stop. i think i clear my self now – Sukeshj Aug 17 '11 at 07:32