Browse Source

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

pull/2/head
Alibek Omarov 2 years ago
parent
commit
7dcddc559c
  1. 2
      engine/platform/sdl/s_sdl.c

2
engine/platform/sdl/s_sdl.c

@ -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…
Cancel
Save