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 - SDL spams ERROR: Invalid audio device ID on exit
Summary: SDL spams ERROR: Invalid audio device ID on exit
Status: RESOLVED FIXED
Alias: None
Product: SDL
Classification: Unclassified
Component: audio (show other bugs)
Version: HG 2.0
Hardware: x86 Windows 7
: P2 minor
Assignee: Ryan C. Gordon
QA Contact: Sam Lantinga
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-04-06 20:34 UTC by Wouter van Oortmerssen
Modified: 2013-07-05 00:31 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.