Bug 3768 - s_MuteWhenUnfocused
Status: RESOLVED FIXED
Alias: None
Product: ioquake3
Classification: Unclassified
Component: Sound
Version: unspecified
Hardware: All All
: P3 enhancement
Assignee: Zachary J. Slater
QA Contact: ioquake3 bugzilla mailing list
URL:
Depends on:
Blocks:
 
Reported: 2008-09-04 01:22 EDT by Chris "Lakitu7" Schwarz
Modified: 2009-09-14 12:25:52 EDT
1 user (show)

See Also:


Attachments
implementation (976 bytes, patch)
2008-09-04 01:22 EDT, Chris "Lakitu7" Schwarz

Description Chris "Lakitu7" Schwarz 2008-09-04 01:22:20 EDT
Adds s_muteWhenUnfocused: Mutes the game sounds when the window does not have focus. This is much like s_muteWhenMinimized, but it instead does what I expected that variable to do: mute the game when I'm alt-tabbed out of it. The "unfocused" state is a superset of the "minimized" state, since something can't be minimized and in focus, but it can (in windowed mode) be both visible and unfocused. The s_muteWhenMinimized cvar will still work as it always has, but if s_muteWhenMinimized is 0 and s_muteWhenInactive is 1, s_muteWhenInactive will take priority. I would merge them into one cvar and just mute when inactive, but that would disallow users from optionally hearing sound while the game is open and visible in a window but they're clicking around in some other app.
Comment 1 Chris "Lakitu7" Schwarz 2008-09-04 01:22:59 EDT
Created attachment 1856 [details]
implementation
Comment 2 Ryan C. Gordon 2009-09-14 12:25:52 EDT
This patch is now svn revision #1588, thanks!

--ryan.