mirror of
https://github.com/UberGames/lilium-voyager.git
synced 2024-12-14 06:01:10 +00:00
parent
af303a4813
commit
2cf2911131
1 changed files with 4 additions and 1 deletions
|
@ -31,6 +31,7 @@ cvar_t *s_musicVolume;
|
||||||
cvar_t *s_doppler;
|
cvar_t *s_doppler;
|
||||||
cvar_t *s_backend;
|
cvar_t *s_backend;
|
||||||
cvar_t *s_muteWhenMinimized;
|
cvar_t *s_muteWhenMinimized;
|
||||||
|
cvar_t *s_muteWhenUnfocused;
|
||||||
|
|
||||||
static soundInterface_t si;
|
static soundInterface_t si;
|
||||||
|
|
||||||
|
@ -228,7 +229,8 @@ S_Update
|
||||||
*/
|
*/
|
||||||
void S_Update( void )
|
void S_Update( void )
|
||||||
{
|
{
|
||||||
if( s_muteWhenMinimized->integer && com_minimized->integer ) {
|
if( ( s_muteWhenMinimized->integer && com_minimized->integer ) ||
|
||||||
|
( s_muteWhenUnfocused->integer && com_unfocused->integer ) ) {
|
||||||
S_StopAllSounds( );
|
S_StopAllSounds( );
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
@ -451,6 +453,7 @@ void S_Init( void )
|
||||||
s_doppler = Cvar_Get( "s_doppler", "1", CVAR_ARCHIVE );
|
s_doppler = Cvar_Get( "s_doppler", "1", CVAR_ARCHIVE );
|
||||||
s_backend = Cvar_Get( "s_backend", "", CVAR_ROM );
|
s_backend = Cvar_Get( "s_backend", "", CVAR_ROM );
|
||||||
s_muteWhenMinimized = Cvar_Get( "s_muteWhenMinimized", "0", CVAR_ARCHIVE );
|
s_muteWhenMinimized = Cvar_Get( "s_muteWhenMinimized", "0", CVAR_ARCHIVE );
|
||||||
|
s_muteWhenUnfocused = Cvar_Get( "s_muteWhenUnfocused", "0", CVAR_ARCHIVE );
|
||||||
|
|
||||||
cv = Cvar_Get( "s_initsound", "1", 0 );
|
cv = Cvar_Get( "s_initsound", "1", 0 );
|
||||||
if( !cv->integer ) {
|
if( !cv->integer ) {
|
||||||
|
|
Loading…
Reference in a new issue