0
0

I meet some Error like follow :

[i:4qqc0gw3]I tried "FMOD_IPhone_RestoreAudioSession" like your advise yesterday.

but I met Link error. only one
"_FMOD_IPhone_RestoreAudioSession", referenced from:
-[TemplateAppDelegate applicationDidBecomeActive:] in CocoonTemplate_NBCAppDelegate.o
ld: symbol(s) not found
collect2: ld returned 1 exit status

error is only 1.

How can I solve this problem.[/i:4qqc0gw3]

<Solution>
I used code on TemplateAppDelegate.m
> I change file name to "[b:4qqc0gw3]TemplateAppDelegate.mm[/b:4qqc0gw3]"

I guess FMOD SDK use Object C++ anymore.

  • You must to post comments
0
0

The symbols contained in the iPhone specific header are C++ (they probably don’t need to be) but currently they are. Hence you will need to use .mm files instead of .m files when referencing it.

  • You must to post comments
0
0

Dear mathew.

Many our developers use ‘.m(Object-c)’ file for development.

So we had been using the FMOD API code without problems,
but Now suddenly this link error of "FMOD_IPhone_RestoreAudioSession" that we are not understood.

Only for this function. ‘mm (object-C + +)’ changing into the uncomfortable.
I just want you to modify to be developed on ".m(object-c)"

  • You must to post comments
0
0

No problem, the next release will have the iPhone header exporting symbols as C, so it will work with .m files.

  • You must to post comments
0
0

Use Fmod v4.32.3

but I still met link error on *.m file

<Source conditions>

[on Template_NBCAppDelegate.h]
[i:3mq60vgt]#import <fmodiphone.h>[/i:3mq60vgt]

[on Template_NBCAppDelegate.m]
[i:3mq60vgt]- (void)applicationDidBecomeActive:(UIApplication*)application
{
FMOD_IPhone_RestoreAudioSession();
}[/i:3mq60vgt]

for compile, I change file name to "Template_NBCAppDelegate.[b:3mq60vgt]mm[/b:3mq60vgt]"

"This Error will be fixed next release."
I hear this at V4.32.01.

  • You must to post comments
0
0

Firstly I would recommend you only use FMOD_IPhone_RestoreAudioSession when returning to the foreground, not when becoming active, you don’t have to worry about losing hardware audio when becoming active any longer, that has been fixed another way.

Secondly the change to make the restore function a C symbol was only done in our current dev branch, we generally don’t touch the API of stable branches.

  • You must to post comments
Showing 5 results
Your Answer

Please first to submit.