Problems with Audio Node in Android

Hi,



I’ve a problem with the sound when I try to deploy an Android Application. I create the Audio Node with the following code:



[java]

AudioNode music = new AudioNode(assetManager, "Sounds/Decisions.ogg", true);

music.play();

[/java]



If i run the application on the computer, the background music loop correctly. Instead, on an Android device , i get no sound at all, and checking on the output of the SDK i get the following error:



E/AndroidAudioRenderer( 9280): SEVERE AndroidAudioRenderer 23.12.38 Failed to play Sounds/Decisions.ogg

E/AndroidAudioRenderer( 9280): java.io.FileNotFoundException: Sounds/Decisions.ogg

E/AndroidAudioRenderer( 9280): at android.content.res.AssetManager.openAssetFd(Native Method)

….



I Checked the libraries in the mobile project, and the .ogg file is present in the assets.jar.

Do i miss something?

I’ll look into it, but please don’t double post

http://hub.jmonkeyengine.org/groups/sound/forum/topic/problem-with-ogg-vorbis-music-file-and-android-deployment/#post-163862

Thanks for the reply.





Sorry for the double post. At first I didn’t notice an android specific forum thread, so I posted in the general audio forum.