mirror of
https://github.com/YGGverse/xash3d-fwgs.git
synced 2025-01-17 18:40:02 +00:00
engine: platform: sdl: set PulseAudio role only on POSIX systems
This commit is contained in:
parent
277bead9b7
commit
7dcddc559c
@ -98,8 +98,10 @@ qboolean SNDDMA_Init( void )
|
|||||||
|
|
||||||
// even if we don't have PA
|
// even if we don't have PA
|
||||||
// we still can safely set env variables
|
// we still can safely set env variables
|
||||||
|
#if XASH_POSIX
|
||||||
setenv( "PULSE_PROP_application.name", GI->title, 1 );
|
setenv( "PULSE_PROP_application.name", GI->title, 1 );
|
||||||
setenv( "PULSE_PROP_media.role", "game", 1 );
|
setenv( "PULSE_PROP_media.role", "game", 1 );
|
||||||
|
#endif // XASH_POSIX
|
||||||
|
|
||||||
memset( &desired, 0, sizeof( desired ) );
|
memset( &desired, 0, sizeof( desired ) );
|
||||||
desired.freq = SOUND_DMA_SPEED;
|
desired.freq = SOUND_DMA_SPEED;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user