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 2797

Summary: [patch] Fix android build with disabled audio subsystem
Product: SDL Reporter: Jonas Kulla <ancurio_bugzilla>
Component: videoAssignee: Ryan C. Gordon <icculus>
Status: RESOLVED FIXED QA Contact: Sam Lantinga <slouken>
Severity: normal    
Priority: P2 CC: gabomdq, icculus
Version: HG 2.1Keywords: triage-2.0.4
Hardware: All   
OS: Android (All)   
Attachments: patch

Description Jonas Kulla 2014-12-02 07:27:02 UTC
Created attachment 1950 [details]
patch

src/video/android/SDL_androidevents.c declares and uses audio subsystem functions (AndroidAUD_ResumeDevices, AndroidAUD_PauseDevices) that are not compiled in when the audio subsystem is disabled during configure.
Check for that case and define the functions as noops instead.

Not sure if you'd rather prefer to have every function call ifdef-d out instead, but I think using stubs is less invasive.
Comment 1 Ryan C. Gordon 2015-02-19 05:22:20 UTC
Marking a large number of bugs with the "triage-2.0.4" keyword at once. Sorry if you got a lot of email from this. This is to help me sort through some bugs in regards to a 2.0.4 release. We may or may not fix this bug for 2.0.4, though!
Comment 2 Ryan C. Gordon 2015-04-05 19:58:55 UTC
This patch is now http://hg.libsdl.org/SDL/rev/b452e37e26d9, thanks!

--ryan.