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 1791

Summary: SDL spams ERROR: Invalid audio device ID on exit
Product: SDL Reporter: Wouter van Oortmerssen <aardappel>
Component: audioAssignee: Ryan C. Gordon <icculus>
Status: RESOLVED FIXED QA Contact: Sam Lantinga <slouken>
Severity: minor    
Priority: P2    
Version: HG 2.0   
Hardware: x86   
OS: Windows 7   

Description Wouter van Oortmerssen 2013-04-06 20:34:10 UTC
upon SDL_QuitSubSystem(SDL_INIT_AUDIO); SDL executes:

    for (i = 0; i < SDL_arraysize(open_devices); i++) {
        SDL_CloseAudioDevice(i);
    }

all of these are already NULL at this point, so SDL sets the error: "ERROR: Invalid audio device ID"

Fix: add: if (open_devices[i])
Comment 1 Ryan C. Gordon 2013-07-05 00:31:11 UTC
Fixed in hg changeset 4828e86c6010, thanks!

--ryan.