[Android] How to load resources? What's the MP3 format?

Discussion of issues specific to mobile platforms such as iOS, Android, Symbian and Meego.
Byfron
Gnoblar
Posts: 2
Joined: Fri May 13, 2011 6:58 pm

[Android] How to load resources? What's the MP3 format?

Post by Byfron »

Hi everyone,

I've managed to native compile Ogre 1.8 together with IOS, libz, freeimage and freetype with the official NDK-r5. I set-up an Eclipse android project with the java wrapper and I manage to deploy the SampleBrowser interface into the device (Samsung GalaxyTab - API-8), and I'm able to interact with it through the touch screen.

Now I would like to load more resources to start playing with some of the examples: for instance Examples.material, or Sinbad.zip. The problem is that I have no idea how the ResourceManager is loading the resources. SDKTrays has been loaded fine, since the menus and mouse pointer are correctly displayed. In the packs sub-directory of the android project example, there are three files: SDKTrays.mp3, thumnails.mp3 and RTShaderLib.mp3. These three files the ResourceManager is able to load correctly with the following lines of code:

Code: Select all

	
addResourceLocation("packs/SdkTrays.mp3", "Essential");
addResourceLocation("packs/thumbnails.mp3", "Essential");
addResourceLocation("packs/RTShaderLib.mp3", "Popular");
No matter how I try I'm not able to get more resources to load, either packed in a zip file or just single material or texure files. I imagine this has to do with that weird mp3 format, which I can't find any info about. For instance, I get this type of error when I try to run a sample:

OGRE EXCEPTION(6:FileNotFoundException): Cannot locate resource Sinbad.mesh in resource group Autodetect or any other group. in ResourceGroupManager::openResource at /home/myUser/Ogre_Android/jni/ogre/OgreMain/src/OgreResourceGroupManager.cpp

I would appreciate some guidance if someone has any idea about this. Thanks!
sportstiger
Gnoblar
Posts: 4
Joined: Tue Apr 24, 2012 4:23 am

Re: [Android] How to load resources? What's the MP3 format?

Post by sportstiger »

me too, I want to know MP3(ACP) format too
sportstiger
Gnoblar
Posts: 4
Joined: Tue Apr 24, 2012 4:23 am

Re: [Android] How to load resources? What's the MP3 format?

Post by sportstiger »

I know the answer. The ACP format was implemented in "ogre-android\Samples\Browser\Android\project\jni\ACPFile.cpp", you can analyse "ACPFile::save(const char *path)" method to understand ACP format. I packed the Sinbad resource, runned Sinbad character demo successfully. Good luck!