Hi
I'm having a small problem with a sound sample I'm playing over & over in a program.
It's a wav file set up like this:
Now what happens is, it works, but every so often when I play the sound,
there is about a half second pause in all the graphics when the sound is
about to play. The action resumes just as the sample begins.
Any ideas what might be happening?
Cheers, Art.
I'm having a small problem with a sound sample I'm playing over & over in a program.
It's a wav file set up like this:
Code:
NSURL *jurl = [NSURL fileURLWithPath:[NSString stringWithFormat:@"%@/shot.wav", [[NSBundle mainBundle] resourcePath]]];
NSError *jerror;
shot = [[AVAudioPlayer alloc] initWithContentsOfURL:jurl error:&jerror];
shot.numberOfLoops = 0;
shot.volume = 0.20;
[shot play]; // shot sound
Now what happens is, it works, but every so often when I play the sound,
there is about a half second pause in all the graphics when the sound is
about to play. The action resumes just as the sample begins.
Any ideas what might be happening?
Cheers, Art.
Last edited: