IllegalArgumentException playing an AudioNode


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 playSourceInstance(411)


Anyone knows why I get this exception?

Cheers! :slight_smile:

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

Okey, I solved my problem.

There is the solution:



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.