mirror of
https://github.com/YGGverse/xash3d-fwgs.git
synced 2025-01-17 18:40:02 +00:00
sound: sdl: set pulseaudio environment variables regardless of target OS, because PA is crossplatform
This commit is contained in:
parent
80fc7209ed
commit
9935e2c8d3
@ -74,10 +74,10 @@ qboolean SNDDMA_Init( void *hInst )
|
||||
return false;
|
||||
}
|
||||
|
||||
#ifdef __linux__
|
||||
// even if we don't have PA
|
||||
// we still can safely set env variables
|
||||
setenv( "PULSE_PROP_application.name", GI->title, 1 );
|
||||
setenv( "PULSE_PROP_media.role", "game", 1 );
|
||||
#endif
|
||||
|
||||
memset( &desired, 0, sizeof( desired ) );
|
||||
desired.freq = SOUND_DMA_SPEED;
|
||||
|
Loading…
x
Reference in New Issue
Block a user