ref: da6a260461920d4cafd4c6d1d624aebf2d9b975c
parent: 84f136b51e07b4d9815c6b033e897ebaef4f16a7
author: Simon Howard <fraggle@gmail.com>
date: Sun Mar 23 17:43:12 EDT 2014
Rearrange order of SDL sound startup. Initialize low-level sound startup (calls to I_InitSound) separately from the high-level sound startup (S_Init). In particular, make sure that SDL sound is initialized before the textscreen multiplayer waiting screen is shown. This is an attempt to fix a bug with sound in multiplayer games on Windows; calling SDL_QuitSubSystem(SDL_INIT_VIDEO) (on closedown of the textscreen library) causes subsequent attempts to initialize audio to fail. Big thanks go to Alexandre-Xavier (AXDOOMER) for working out a fix for this bug and James Haley (Quasar) for giving some technical background about the lack of separation between SDL subsystems. This (hopefully) fixes #270.