| Summary: | SDL spams ERROR: Invalid audio device ID on exit | ||
|---|---|---|---|
| Product: | SDL | Reporter: | Wouter van Oortmerssen <aardappel> |
| Component: | audio | Assignee: | 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 | ||
Fixed in hg changeset 4828e86c6010, thanks! --ryan. |
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])