engine: platform: sdl: set PulseAudio role only on POSIX systems

This commit is contained in:
Alibek Omarov 2023-05-17 17:38:18 +03:00
parent 277bead9b7
commit 7dcddc559c

View File

@ -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;