0
0

Hi,

I’m getting the following two compilation errors in my iPhone app:

[quote:1a8eggp2]
1) error: no matching function for call to ‘FMOD::Channel:isPlaying(BOOL *)’
2) error: ‘class FMOD:channel’ has no member ‘Stop’.

[/quote:1a8eggp2]

The messages are caused by the following code:

[code:1a8eggp2]
BOOL isRecordPlaying = FALSE;
if (channelRecord != NULL) {
result = channelRecord->isPlaying(&isRecordPlaying); // causes message 1)
ERRCHECK(result);
if (isRecordPlaying) {
result = channelRecord->Stop(); // causes message 2)
ERRCHECK(result);
}
}
[/code:1a8eggp2]

channelRecord is an ivar declared like this in the header file:

[code:1a8eggp2]
FMOD::Channel *channelRecord;
[/code:1a8eggp2]

What gives?

  • You must to post comments
0
0

Oops. Sorry, the second error message is a bit embarrassing:

it’s:

[code:3tc2zt1p]
channelRecord->stop()
[/code:3tc2zt1p]

instead of

[code:3tc2zt1p]
channelRecord->Stop()
[/code:3tc2zt1p]

Once I changed that, error message 1) disappeared too. I don’t understand why, but there you go…. -:)

  • You must to post comments
0
0

😆

  • You must to post comments
Showing 2 results
Your Answer

Please first to submit.