Hi,
I have previously succesfully extended Cocos2dxMusic.java to have 2 meida players and creating a parallel set of play/stop functions which differ only in index 2 in names. Now I try to extend another method, for pausing while going into background, and do it in the same way:
`public void pauseBackgroundMusic() {
if (this.mBackgroundMediaPlayer != null && this.mBackgroundMediaPlayer.isPlaying()) {
this.mBackgroundMediaPlayer.pause();
this.mPaused = true;
}
}
public void pauseBackgroundMusic2() {
if (this.mBackgroundMediaPlayer2 != null && this.mBackgroundMediaPlayer2.isPlaying()) {
this.mBackgroundMediaPlayer2.pause();
this.mPaused2 = true;
}
}
`
But I get this message by calling the method:
05-01 16:55:19.239: D/libSimpleAudioEngine(3595): Failed to find static method id of pauseBackgroundMusic2
I do not see what the differences are - all JNI methods are equally extended. Any hints?