flareteam / flare-engine

Free/Libre Action Roleplaying Engine (engine only)
http://flarerpg.org/
GNU General Public License v3.0
1.11k stars 187 forks source link

Mute game sounds when not focused option #1832

Closed Blueberryy closed 1 year ago

Blueberryy commented 1 year ago

Would be great feature when switching between tabs

dorkster commented 1 year ago

We already do this for SDL_WINDOWEVENT_MINIMIZED events, so it shouldn't be much of a reach to do it for SDL_WINDOWEVENT_FOCUS_LOST. And I agree that it should be optional as alluded to in the title.