Avoid interception by PulseAudio (#2992)

This commit is contained in:
Javier Serrano Polo
2017-02-05 18:49:42 +00:00
committed by Tres Finocchiaro
parent 30f1e52be3
commit d50ca512cd

View File

@@ -54,6 +54,12 @@ AudioAlsa::AudioAlsa( bool & _success_ful, Mixer* _mixer ) :
{
_success_ful = false;
if( setenv( "PULSE_ALSA_HOOK_CONF", "/dev/null", 0 ) )
{
fprintf( stderr,
"Could not avoid possible interception by PulseAudio\n" );
}
int err;
if( ( err = snd_pcm_open( &m_handle,