We are currently migrating Bugzilla to GitHub issues.
Any changes made to the bug tracker now will be lost, so please do not post new bugs or make changes to them.
When we're done, all bug URLs will redirect to their equivalent location on the new bug tracker.

Bug 1703

Summary: SDL calls a wrong JNI function on Android.
Product: SDL Reporter: Philipp Wiesemann <philipp.wiesemann>
Component: audioAssignee: Ryan C. Gordon <icculus>
Status: RESOLVED FIXED QA Contact: Sam Lantinga <slouken>
Severity: major    
Priority: P2 CC: gabomdq
Version: HG 2.0   
Hardware: All   
OS: Android (All)   
Attachments: Patch for SDL calling a wrong JNI function on Android.

Description Philipp Wiesemann 2013-01-26 09:26:15 UTC
Created attachment 1028 [details]
Patch for SDL calling a wrong JNI function on Android.

Hello,

SDL calls a wrong JNI function on Android. "CallStaticObjectMethod" is used instead of "CallStaticVoidMethod" for "audioInit" which returns no "Object".

This seems not to matter on all devices but I think it should be fixed.

I attached a related patch.
Comment 1 Gabriel Jacobo 2013-02-12 09:00:28 UTC
Thanks! http://hg.libsdl.org/SDL/rev/97187387ad79