0
0

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).

  • You must to post comments
0
0

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.

  • You must to post comments
0
0

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.

  • You must to post comments
0
0

Hello,

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]

Thanks!

  • George
  • You must to post comments
0
0
  • I am playing a WAV PCM file in 16 bits stereo 44100Hz
  • The 60% i mesured came from the XCode Instruments, i will try the FMOD profiler.
  • I use the flags : FMOD_DEFAULT | FMOD_LOOP_NORMAL
  • I dont use use any effects.

Thank you for you interest.

  • You must to post comments
0
0

Thanks,

I’ve had the same issue with PCM based files. Increasing buffer sizes didn’t help much either for me, though I can’t say whether or not it would work for you.

Perhaps the FMOD folks can provide some help with this.

  • George
  • You must to post comments
0
0

If your CPU is 60% then it won’t be the output that is stuttering. Perhaps you additional loading is causing the FMOD streamer to starve, have you tried altering the stream buffer size with System::setStreamBufferSize?

  • You must to post comments
0
0

I tried setStreamBufferSize(FMOD_TIMEUNIT_MS, 6000), but it doesnt help.

With getCPUUsage i get a total of 5% before and after the loading.

  • You must to post comments
Showing 7 results
Your Answer

Please first to submit.