Hello!
We are thinking about porting our PSP music game to iPhone.
The video part can be easily ported with Unity but for sound we are using special high level layer. This is C code, so can we use custom code with Unity somehow?
Or we need sources for this?
What about special own audio output with latence compensation?
Video support on the iPhone
Please note that we do not currently support video textures on the iPhone. We do plan on adding video texture support in a future update*.
Adding your own C/C++/Objective C code
In this initial release there are some minimal capabilities to add your own custom code to the XCode project to modify your application. In a future update* we definitely want to expose more support and let you add your own code and expose custom scripting APIs for this sort of purpose.
*Above I referenced a “future update”, I do not have a time line to offer you at this point but they’re somewhat high priority items that we’d like to get in sooner as opposed to later.
FMOD in Unity?
We’ve stated that we’re interested in switching to FMOD in the future but that’s only been rough and vague guidance for now, we really don’t have anything specific to share as to when that might happen.
Microphone Input
I don’t know if this is iPhone specific or not but we don’t have built in microphone support in any case. FWIW, the trial documentation you have doesn’t include any iPhone related material. Once I hit submit here I’ll be replying to your email to me to set you up with an iPhone trial so you can play around with that functionality and poke around the iPhone related docs.
I can confirm that the 2nd generation iPod touch does support a microphone input. It has not built in mic but can use the iPhone headset which includes a microphone.
No, not really, sorry. The problem is that it’s in a state of flux at the moment and so the call was made to not document it for now and instead focus on a proper implementation in a future update that will then get documented. Sub-optimal but it’s the answer I have for now…
I have been able to get microphone input working by customizing the Xcode project created during Unity builds. You could also embed your own audio code, if you wanted to, but triggering audio changes to your native code from the Unity engine might be tricky in the current release of Unity.
No, nothing to discuss publicly as in it’s not a part of the Unity Roadmap (2.5.1/2.6/2.x) nor the Unity iPhone Roadmap (1.0.2/1.1/1.x). A wholesale change of audio engine will be a significant undertaking and is really more likely to appear in a new major release (no commitments there so do not read that as “oh yeah, it’s coming in 3.0 for sure!”).