weimingtom / nekonme

Automatically exported from code.google.com/p/nekonme
0 stars 0 forks source link

Sound on Android not working in rev. 1738 #247

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Use a sound file
2. Compile for android
3. Start App

What is the expected output? What do you see instead?
Expected: Sound playing
Instead: Fatal Exception
E/AndroidRuntime( 8677): java.lang.NoSuchMethodError: no static method with 
name='getSoundPoolID' signature='()I' in class Lorg/haxe/nme/GameActivity;
E/AndroidRuntime( 8677):        at org.haxe.nme.NME.onRender(Native Method)
E/AndroidRuntime( 8677):        at 
org.haxe.nme.MainView$Renderer.onDrawFrame(MainView.java:246)
E/AndroidRuntime( 8677):        at 
android.opengl.GLSurfaceView$GLThread.guardedRun(GLSurfaceView.java:1462)
E/AndroidRuntime( 8677):        at 
android.opengl.GLSurfaceView$GLThread.run(GLSurfaceView.java:1216)

What version of the product are you using? On what operating system?
NME rev. 1738, Haxe 2.09, Tested with Android 4.0.4 tablet

It works in NME 3.3.3 from Haxelib.

Original issue reported on code.google.com by tobias.r...@gmail.com on 5 Jul 2012 at 3:46

GoogleCodeExporter commented 8 years ago
This seems to be because I didn't do nme rebuild android for some reason.

But know I am getting a log of SIGSEGV exceptions in my awe6 game. I.E. when 
changing the awe6 scene, playing music ... 
When I switch back to v3.3.3 it's working fine again.

Original comment by tobias.r...@gmail.com on 9 Jul 2012 at 2:51

GoogleCodeExporter commented 8 years ago
I am going to look into this now.

Original comment by elearnin...@gmail.com on 17 Jul 2012 at 10:26

GoogleCodeExporter commented 8 years ago
should work now. Sound was moved out of GameActivity so a JNI reference needed 
to be changed.

Original comment by elearnin...@gmail.com on 17 Jul 2012 at 10:35