iPhone/iPad Audio Glitch - Double Hiss/Static

Posts: 4
Joined: 2010.07
Post: #1
Hi there,

We are developing a game for the Apple devices (iPhone/iPad), and initially resorted to using OpenAL for sound. We didn't have any major issues with this library choice, however after adding complexity to our sound engine, we noticed a strange "double static" sound (sometimes) being played after (some) various .wav sound effects. We assumed that this was an issue with the OpenAL library, and re-factored our engine to use the FMOD library in place of OpenAL. Surprisingly, the strange"double static" sound still plays using FMOD! I have recorded this "double static" sound which can be heard here:


Naturally, one would assume that it's the sound file itself that is corrupt, however we have tried replacing the sounds to no avail. We have also tried converting all files to .caf format, still plays static. We have tried re-encoding the sound files to FMOD friendly (i.e. PCM/ADPCM); still plays static sound Sad

Does anyone have any ideas?
Quote this message in a reply
Posts: 484
Joined: 2008.04
Post: #2
If you have very short sounds, pad them with a little bit of silence at the end. We ran into problems with our sound if the sound is longer than a frame of audio. I think padding to half a second or a full second fixed it.

I can't quite tell from your youtube video how long the sound was.

Howling Moon Software - CrayonBall for Mac and iPhone, Contract Game Dev Work
Quote this message in a reply
Posts: 4
Joined: 2010.07
Post: #3
I doubt that our sounds are shorter than a frame of audio. Is this what you mean? Did you have problems when the sound was longer or shorter than a frame of audio?

We tried half a second padding but it didn't seem to help. We will try a full second and let you know.


So the problem is fixed. I figured I'd go through a bit of embarrassment to make sure that other people know why we were having this problem. The problem as it turns out was not the explosion sound but the throw sound. It had a long silent gap followed by the two static bursts.

The reason we didn't pickup on it is, first we assumed the sounds were OK. Lesson learned! Second, when a grenade is thrown we have two sounds which are randomly selected so sometimes we'd never hear it. I guess next time we will just check all the sounds to make sure...

I swear this always happens the day I post a problem on the forums Rasp
Quote this message in a reply
Post Reply 

Possibly Related Threads...
Thread: Author Replies: Views: Last Post
  iPhone/iPod Touch Audio Info musicbender 2 5,269 May 10, 2010 06:29 AM
Last Post: musicbender
  How we can play the audio file continue in sleep mode of iPhone Rajneesh84 5 9,279 Feb 13, 2009 07:50 AM
Last Post: AnotherJake
  Double-Buffering with NSOpenGLView DesertPenguin 3 8,338 Aug 1, 2006 07:17 AM
Last Post: DesertPenguin
  Double Buffering with 2 or more objects in JAVA batuhanu 4 6,540 Nov 26, 2005 06:24 AM
Last Post: Tools10
  need help with a tearing like graphics glitch Andrew 19 13,580 Jun 9, 2005 09:41 AM
Last Post: Andrew