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 1971

Summary: Off-by-one error in SDL_AudioQuit (with patch)
Product: SDL Reporter: Rainer Deyke <rainerd>
Component: audioAssignee: Ryan C. Gordon <icculus>
Status: RESOLVED FIXED QA Contact: Sam Lantinga <slouken>
Severity: normal    
Priority: P2 Keywords: target-2.0.0
Version: HG 2.0   
Hardware: All   
OS: All   
Attachments: Fix.

Description Rainer Deyke 2013-07-14 05:59:06 UTC
Created attachment 1232 [details]
Fix.

In SDL_AudioQuit, when SDL iterates over the open audio devices in order to close them, it passes an incorrect value to SDL_CloseAudioDevice.  The loop index is 0-based, but SDL_CloseAudioDevice expects a 1-based index.
Comment 1 Ryan C. Gordon 2013-07-14 12:25:12 UTC
This is now hg changeset 6cbb6aaedc20, thanks!

--ryan.