Browse Source

sound: sdl: set pulseaudio environment variables regardless of target OS, because PA is crossplatform

pull/2/head
Alibek Omarov 6 years ago
parent
commit
9935e2c8d3
  1. 4
      engine/platform/sdl/s_sdl.c

4
engine/platform/sdl/s_sdl.c

@ -74,10 +74,10 @@ qboolean SNDDMA_Init( void *hInst ) @@ -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…
Cancel
Save