RetroPie / EmulationStation

A Fork of Emulation Station for RetroPie. Emulation Station is a flexible emulator front-end supporting keyboardless navigation and custom system themes.
Other
863 stars 344 forks source link

ScreenSaver audio dont stop when starting game during screensaver #812

Closed apison closed 1 year ago

apison commented 2 years ago

On my linux board The audio dont stop when the game is launched during screensaver, this cause the audio dont work in the game itself. I've fixed the problem closing screensaver before launch the game in file EmulationStation-master\es-app\src\SystemScreenSaver.cpp

void SystemScreenSaver::launchGame() { if (mCurrentGame != NULL) { //Stop screensaver mStopBackgroundAudio = true; stopScreenSaver();

    // launching Game
    ViewController::get()->goToGameList(mCurrentGame->getSystem());
    IGameListView* view = ViewController::get()->getGameListView(mCurrentGame->getSystem()).get();
    view->setCursor(mCurrentGame);
    view->launch(mCurrentGame);
}

}

pjft commented 1 year ago

Thank you! Used this to fix recent reports of the same behavior. In hindsight, it's a surprise it worked as intended so far.

Best.