0
0

I can’t get it working on device, however in simulator it works perfectly. I’m receiving "exited with status 255" message when running any of the examples, or the app I was making myself.
I’m using iphone SDK 2.0, and device’s firmware is 2.1. I had to edit project settings to SDK 2.0, since it’s seems to have been saved with SDK 2.2, but it’s alright.
Every time I run examples, I get this:

(channelgroups)

[code:2fw61wfc]
FMOD: SystemI::init : FMOD Ex Version: 00042200
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 : Initialising...
FMOD: OutputCoreAudio::init : Forcing output format to an acceptable value: PCM16.
FMOD: OutputCoreAudio::init : Forcing dsp buffer length to hardware selected size: 1156.
FMOD: OutputCoreAudio::init : Cannot initialise audio device.
FMOD: OutputCoreAudio::init : Initialisation Failed!
FMOD error! (61) Error initializing output device.
[/code:2fw61wfc]

So it cannot initialize properly. I tried passing extradriverdata, with no result.

  • You must to post comments
0
0

Hmm, that is strange, I haven’t seen the error number you are getting before.

As an experiment can you download the aurioTouch example from the Apple developer site and run it on your device? Does it work correctly?

  • You must to post comments
0
0

You shouldn’t have to edit the settings to change from 2.2 (which we save in) to 2.0, you can simply use the combo box in Xcode to override any setting, thats how we test here anyway (makes it a bit easier than editing configs).

I digress… I have just tested here using the channelgroups example and I didn’t have any problems using it on the device.

I notice you say you are using SDK 2.0, this could be the problem, I suggest you upgrade to SDK 2.2. We compile FMOD here with SDK 2.2 so you could have problems if your not up to date when you link in the rest of the frameworks.

The tests I did here were using the standard FMOD libs we ship with the channelgroup example, set as SDK 2.0 (like you have) and it worked correctly. So if you upgrade to 2.2 you shouldn’t have any problems compiling for 2.0 and using the FMOD libs.

This is my best guess from the info you have given me, if you are still having problems let me know. It could be useful to know what kind of device you have (touch vs iphone vs 3g, etc, not that is should matter). We test with an iPhone 3G.

  • You must to post comments
0
0

A couple of hopefully helpful questions:

[list:2snyahcd]- Is it an iPod Touch or an iPhone? If it is not jailbroken now, do you know if it has ever been jailbroken, and more importantly unlocked?
– Is is a local file or a stream of the network that you are opening?
– The HAL error is sometimes present in WLAN / 3G service issues.
– Have you tried changing the bundle indentifier in your info.plist?
[/list:u:2snyahcd]

  • George
  • You must to post comments
0
0

Thank you.

[quote:rf8qwx3r]
You shouldn’t have to edit the settings to change from 2.2 (which we save in) to 2.0, you can simply use the combo box in Xcode to override any setting, thats how we test here anyway (makes it a bit easier than editing configs). [/quote:rf8qwx3r]

No it wont work, because xcode cannot recognize newer SDK, so there’s no other options.


I had this idea about upgrading to 2.2, but that’s not something easy. Every time I enter apple’s developer panel, I’m seeing message I shouldn’t use older firmware with this SDK, so I’m afraid of other problems this upgrade may cause. I don’t want to upgrade a phone for testing purpose.
Ok, guess I’ll have to make a decision.
You don’t have older libs somewhere on your site, compiled with SDK 2.1 or 2.0, do you?

As for device, I’m using iphone 1st gen.

  • You must to post comments
0
0

George has some good points, I think point 1 is very important, 2 doesn’t apply since the problem is happening in System::init, 3 I have never seen this before however we don’t debug using the cell network so that could be why and 4 shouldn’t matter since if the ID is invalid for your provisioning profile and app won’t sync to the device.

I am eager to hear results from the aurioTouch example though since it is independent of FMOD but follows the basic logic we use.

  • You must to post comments
0
0

[quote:lt3xzqcv]No it wont work, because xcode cannot recognize newer SDK, so there’s no other options.[/quote:lt3xzqcv]

Ah yes, I understand.

[quote:lt3xzqcv]I had this idea about upgrading to 2.2, but that’s not something easy. Every time I enter apple’s developer panel, I’m seeing message I shouldn’t use older firmware with this SDK, so I’m afraid of other problems this upgrade may cause. I don’t want to upgrade a phone for testing purpose.
Ok, guess I’ll have to make a decision. [/quote:lt3xzqcv]

I believe the Apple recommendation is for your development device to always use the latest SDK and firmware. The latest version provides all the support for targeting prior OS versions. Upgrading will not impact on your ability to support older versions and by keeping your development device on an old version your are limiting your ability to support newer devices.

[quote:lt3xzqcv]You don’t have older libs somewhere on your site, compiled with SDK 2.1 or 2.0, do you? [/quote:lt3xzqcv]

No we don’t support old versions as there has been numerous big fixes, some quite critical considering the iPhone is such a new platform for FMOD.

The only other thing I can suggest at the moment is use extradriverdata to set the audio session category to anything but FMOD_IPHONE_SESSIONCATEGORY_SOLOAMBIENTSOUND as this value is only available in 2.2 and is the default in 2.2. Check with the FMOD docs CHM under platform specific issues -> iPhone for an example of using that code.

  • You must to post comments
0
0

Thank you for your support guys, here are more info:

-It is an iPod Touch 1st gen
-It was never jailbroken
-aurioTouch is playing sound (button click), but sound input doesn’t work (do iPods have microphone?)

  • You must to post comments
0
0

how about 2.1.1?
currently FMOD doesn’t work on this firmware version :(

i’ve tried compiling with various SDK versions and changing audio session category, but nothing helps.

is this version officialy unsupported?

  • You must to post comments
0
0

Hello,

I have the iPod Touch 1st Gen also. I am running FW 2.2 though. The iPod Touch 1G does not have a microphone, but the MacAlly iVoice III and Pro work with it (although Mathew and I found some interesting use cases where you have to have the earphones plugged in). Anyway, I digress.

In XCode, under Organizer, when you highlight your iPod, there will be tabs for Console logs and Crash reports. Perhaps you could take a look there and see if there are any additional messages?

  • George
  • You must to post comments
0
0

You will need to be more specific as to why it doesn’t work. We officially support all firmware versions and there are no known compatibility issues with our current release.

What errors are you getting? What output do you receive on the TTY? Also make sure you are using a recent version of FMOD.

  • You must to post comments
0
0

Yes, it’s worth checking out the logs there may be something of value there.

This is a pretty hard issue to address since our testing devices are on 3.0 now and we can’t go back. Also the error code coming from the iPhone SDK is undocumented so that’s is no help either.

Perhaps try upgrading to 4.25.11, there have been some recent improvements to the CoreAudio init code that may resolve your issue. Another thing to try is using System::setSoftwareFormat try different sample rates, for instance try 44100 or 8000, maybe the device with that firmware didn’t like our default rate of 24000.

Also the aurioTouch example won’t be of use of us, the bit I was hoping to test doesn’t operate without mic support which the iPod touch 1st gen doesn’t have. It plays audio through a different subsystem (not how FMOD works).

  • You must to post comments
0
0

i’ve tried the latest stable and development versions, but no luck..
FMOD_System_Init returns error code 62 (Error initializing output device)

it works fine on all other iphone firmware versions including 2.1, but not on 2.1.1

  • You must to post comments
0
0

by the way, the latest FMOD 4.24.11 doesn’t link with iPhone SDK 2.0
anymore, because of reference to _AudioSessionRemovePropertyListenerWithUserData in FMOD::OutputCoreAudio::close()

  • You must to post comments
0
0

Can you run one of the examples in debug mode and take a look at the TTY output, you should get a meaningful error message just before System::init() returns the error code.

  • You must to post comments
0
0

Looks like I missed that AudioSessionRemovePropertyListenerWithUserData is only available from 2.1 onwards. I have added some compatibility code to cover if the device is using 2.0 so it won’t crash now.

However you should be compiling using the latest SDK, i.e. set your base SDK to 3.0. If you want to support older versions of the OS then set the deployment target to that version. We release all FMOD libs using 3.0 base SDK and 2.0 target for compatibility.

The compatibility fix (to prevent crash when it calls the unavailable API) will be in the next release.

  • You must to post comments
0
0

this is from ‘playsound’ example:

[code:2osdd4i7]Initializing FMOD...
FMOD: SystemI::init : FMOD Ex Version: 00042409
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...
Formulating crash report for process mediaserverd[148]
FMOD: OutputCoreAudio::init : Forcing output format to an acceptable value: PCM16.
FMOD: OutputCoreAudio::init : Forcing dsp buffer length to hardware selected size: 1156.
FMOD: OutputCoreAudio::init : Cannot initialize audio device. (err: 268435459)
FMOD: OutputCoreAudio::init : Initialization Failed!
FMOD error! (62) Error initializing output device.
mediaserverd: 17:00:15.520 Stream_USB_Aspen.cpp[163]: GetCurrentPhysicalFormat(): ERROR: No HAL stream format corresponding to the current iAP digital audio sample rate 0 Hz
[/code:2osdd4i7]

  • You must to post comments
0
0

thank you

as for sound problem on iPod v2.1.1 – the System::setSoftwareFormat didn’t help. I’ll try to collect more information on this issue later.

  • You must to post comments
0
0

Hmm, looking at that output there are some odd debug prints appearing. Are you using FMOD with a jailbroken iPhone? If so I can’t make any guarantees about it’s compatibility. The error code coming out of init is undocumented so my first thought is something non standard about your device.

  • You must to post comments
0
0

No, it is not jailbroken.
We even restored the 2.1.1 firmware from scratch and log remained exactly the same.

  • You must to post comments
Showing 19 results
Your Answer

Please first to submit.