I have some glitches on my iPhone game. The sound is repeating while long loadings (2 seconds).
I tried to increase the buffer size but it doesnt help.
My game also works on Windows, and it works great with the same loadings (same load times because the PC does heavy image format conversions to load the iPhone sources).
- Bruno asked 8 years ago
Can you give some details about what you are doing when the sound glitches?
What sound are you playing while loading? How much CPU is FMOD using when there is glitching? The mixer thread that plays the audio is high priority so it should not be blocked unless you are doing something unusual while loading or adjusting your thread priorities.
Increasing the DSP buffer size won’t help on iPhone, the value is currently fixed.
Also comparing performance with Windows doesn’t really work since a PC and the iPhone have vastly different hardware and different audio interfaces.
I am playing a music (FMOD_CREATESTREAM flag), with 60% total CPU used during the glitches (this number is very aproximative because in a loading the CPU load vary a lot).
My loading consist of reading 5/6 MB from flash, doing some parsing and sending 0.8MB of texture to OpenGL ES.
I’ve experienced stuttering on iPhone playback myself, so I have a couple of other questions for you:
[list:2s9qo7cx]- What type of music file are you trying to play? (CODEC, Bitrate, Sample rate, # of channels, etc.)
– The 60% that you see, is that through the FMOD profiler or through XCode Instruments? Looking at both usually helps me.
– What are the other flags you are using during createSound?
– Are you using any DSP effects as well?[/list:u:2s9qo7cx]
Please login first to submit.