0
0

Hi,

We have been using FMOD on the iPhone successfully for a while. However since multitasking was introduced we are having some difficulties. We have multiple applications using it, when one goes into the background and the next starts up EventSystem_Create fails. However when we attempt to free the event system when the app goes into the background, it fails when we try to reinitialise it when it comes back to the foreground.

Hope all that makes sense.

Does anyone have any suggestions?

Thanks

  • You must to post comments
0
0

Can you link with the logging version of FMOD and report back what it says on the TTY when it fails?

  • You must to post comments
0
0

Thanks for the reply.

What I have done is taken the music_system example and added a second target with a different target name etc. So I built the first target onto the phone, detach the debugger and then run it manually, switch to the second target (clean all) and run it, I get the following:

FMOD: EventSystemI::init : maxchannels = 32. flags = 00000020
FMOD: SystemI::init : FMOD Ex Version: 00043205
FMOD: SystemI::init : maxchannels = 32, flags = 00000020, extradriverdata = 0x0
FMOD: SystemI::close :
FMOD: SystemI::close : Stop all sounds
FMOD: SystemI::close : Remove miscllaneous DSP stuff.
FMOD: SystemI::close : done.

FMOD: OutputCoreAudio::init : Initializing…
FMOD: OutputCoreAudio::prepareAudioSession : Setting override to force output through main speaker while recording.
FMOD: OutputCoreAudio::prepareAudioSession : Setting override to force mixing when usually not permitted.
FMOD: OutputCoreAudio::init : Maximum hardware read size: 4096 samples, Software buffer size: 1024 samples, Number of software buffers: 4.
FMOD: OutputCoreAudio::init : Hardware buffer size: 1024 samples, hardware sample rate: 24000Hz.
FMOD: OutputCoreAudio::init : Done.
FMOD: SystemI::init : Set up software engine
FMOD: Thread::initThread : Initializing FMOD mixer thread. priority 1
FMOD: Thread::initThread : – Stacksize 32768. Stack pointer 0x0 : usesemaphore = 1 : sleeptime = 0
FMOD: Thread::callback : * FMOD mixer thread started
FMOD: Thread::initThread : done.
FMOD: SystemI::init : Set up emulated output
FMOD: SystemI::init : create the channel pool
FMOD: SystemI::init : Set up streamer
FMOD: Thread::initThread : Initializing FMOD stream thread. priority 2
FMOD: Thread::initThread : – Stacksize 49152. Stack pointer 0x0 : usesemaphore = 0 : sleeptime = 10
FMOD: Thread::callback : * FMOD stream thread started
FMOD: Thread::initThread : done.
FMOD: SystemI::close :
FMOD: SystemI::close : Stop all sounds
FMOD: Thread::callback : * FMOD stream thread finished
FMOD: Thread::close : FMOD stream thread thread destroyed
FMOD: SystemI::close : Stream thread destroyed
FMOD: SystemI::close : Free master channel group.
FMOD: SystemI::close : Remove ‘master’ sound group.
FMOD: SystemI::close : Shut down output.
FMOD: Thread::callback : * FMOD mixer thread finished
FMOD: Thread::close : FMOD mixer thread thread destroyed
FMOD: OutputCoreAudio::close : Closing…
FMOD: OutputCoreAudio::close : Done.
FMOD: SystemI::close : Free software output.
FMOD: SystemI::close : Free emulated output.
FMOD: SystemI::close : Free channel pool.
FMOD: SystemI::close : Remove DSP Soundcard unit.
FMOD: SystemI::close : Remove miscllaneous DSP stuff.
FMOD: SystemI::close : done.

FMOD error! (53) A socket error occurred. This is a catch-all for socket-related errors not listed elsewhere.

That last error is the same as what I get in my projects.

I have put a copy of the updated project file here : http://dl.dropbox.com/u/3392551/music_s … deproj.zip

Thanks again, appreciate the help.

  • You must to post comments
0
0

That’s a pretty terrible error to be reporting on our behalf but the what the socket error is really trying to tell you is the port you are attempting to listen on is already in use, this is for the FMOD Profiler.

So you can either not use FMOD_INIT_ENABLE_PROFILE on both apps that use FMOD at the same time, or you can configure them to operate on different ports by using System::setAdvancedSettings and specify the profileport for each to be unique.

  • You must to post comments
0
0

Thanks! Pretty obvious when you see that.

Appreciate the help.

  • You must to post comments
Showing 4 results
Your Answer

Please first to submit.