Hi all,
as I need two [big] mp3 files to be played in parallel in my app I decided to extend Cocos2dxMusic.java simply by providing the second identical set of functions - like preloadBackgroundMusic2() after preloadBackgroundMusic() etc. Now I have extended the following files:
Cocos2dxMusic.java
SimpleAudioEngineJni.h
SimpleAudioEngineJni.cpp
cocos2dxapi.js
cocos2dx.cpp
cocos2dx.hpp
Cocos2dxHelper.java
But at runtime, my new methods still could not be found - I get "No such method error: no static method with name preloadBackgroundMusic2 is found in class Cocos2dxHelper.
Now if I check Cocos2dxHelper.class I indeed do not see the new method, that means it was not newly generated, despite of clean build (Eclipse).
So the question is: how do I compile Cocos2dxHelper.java into Cocos2dxHelper.class ?