SCUMM: Deadlock in Player_AD on quitting
|Reported by:||eriktorbjorn||Owned by:||eriktorbjorn|
Reproduced with Indiana Jones and the Last Crusade, AdLib music, "nuked" OPL emulator.
Steps to reproduce: Start the game, then quit during the intro.
If you are "lucky", the game will deadlock. Judging by debug messages I added, the main thread gets stuck in Player_ADL::~Player_AD() while it's deleting _opl2. The audio thread appears to get stuck in Player_ADL::onTimer(), waiting for the lock to be released.
I don't know if any of the other SCUMM players have the same problem.