IllegalArgumentException playing an AudioNode

Hi!

I am trying to add music to my jme3 app and I have a problem when I run the app in my device.

If I run the app in the emulator it works fine but when I run the app in my device I get an IllegalArgumentException when the app try to play it.

The exception is the following:

Failed to load: Sounds/myMusic.ogg: java.lang.IllegalArgumentException



Exception thrown in Thread[GLThread 10,5,main]:

at com.jme3.audio.android.AndroidAudioRenderer. playSourceInstance(411)

at com.jme3.audio.android.AndroidAudioRenderer.playSource(448)





Anyone knows why I get this exception?



Cheers! :slight_smile:

No, but looking at the source might give you a clue :slight_smile:



http://code.google.com/p/jmonkeyengine/source/browse/trunk/engine/src/android/com/jme3/audio/android/AndroidAudioRenderer.java

Okey, I solved my problem.



There is the solution:

http://hub.jmonkeyengine.org/groups/android/forum/topic/sound-file-not-found/?#post-167685



Thanks!

:wink:

The nightly version of the SDK already manages the assets differently so there will be no need to apply any workarounds to be able to load sounds on android inthe future.