Author Topic: Using WASAPI for PortAudio in MAME 182 causes RetroFE to hang/crash on exit  (Read 3554 times)

Agent47

  • Global Moderator
  • Full Member
  • *****
  • Posts: 160
  • Karma: +7/-41
    • View Profile
Hey guys, I think I stumbled onto a bug. After updating to MAME 182 and utilizing PortAudio in MAME using the WASAPI RetroFE will hang indefinitely and crash when trying to exit RetroFE. There are no issues with the emulator or RetroFE regarding sound, that all works fine. When I go to exit RetroFE it hangs on a black screen (5+min) and if I press Escape it will crash.

Using another API for PortAudio or disabling PortAudio in MAME allows RetroFE to close normally. I checked the log and there doesn't seem to be any errors, the last line written is "[SDL] DeInitializing" which is where it hangs, RetroFE never exits. This occurs on the 0.7.20b3 build and the 0.7.20b4 build posted today.

Pieter Hulshoff

  • Administrator
  • Hero Member
  • *****
  • Posts: 1543
  • Karma: +46/-14
    • View Profile
    • Towel 42
To be honest: I don't even know what WASAPI is, but I'm pretty sure this issue will exist with every RetroFE version. My guess is that the de-initialization hangs, since both of them use SDL. I will see what I can find.

... just read it's Windows only; that makes debugging a tad more difficult for me ...
« Last Edit: January 28, 2017, 06:03:21 PM by Pieter Hulshoff »

catelite

  • Newbie
  • *
  • Posts: 7
  • Karma: +0/-0
    • View Profile
WASAPI is the latest and greatest way windows manages audio devices so I imagine this is a possible conflict with SDL. I've used both a fair bit so will see if I can repro the problem and see what's going on