Blame patches/libsndfile-1.0.28.local.patch

Lucio Andrés Illanes Albornoz b6e793
diff -ru libsndfile-1.0.28.orig/programs/sndfile-play.c libsndfile-1.0.28/programs/sndfile-play.c
Lucio Andrés Illanes Albornoz b6e793
--- libsndfile-1.0.28.orig/programs/sndfile-play.c	2017-04-01 09:18:02.000000000 +0200
Lucio Andrés Illanes Albornoz b6e793
+++ libsndfile-1.0.28/programs/sndfile-play.c	2018-06-10 03:16:32.784821054 +0200
Lucio Andrés Illanes Albornoz b6e793
@@ -193,7 +193,7 @@
Lucio Andrés Illanes Albornoz b6e793
 		goto catch_error ;
Lucio Andrés Illanes Albornoz b6e793
 		} ;
Lucio Andrés Illanes Albornoz b6e793
 
Lucio Andrés Illanes Albornoz b6e793
-	if ((err = snd_pcm_hw_params_set_rate_near (alsa_dev, hw_params, &samplerate, 0)) < 0)
Lucio Andrés Illanes Albornoz b6e793
+	if ((err = __snd_pcm_hw_params_set_rate_near (alsa_dev, hw_params, &samplerate, 0)) < 0)
Lucio Andrés Illanes Albornoz b6e793
 	{	fprintf (stderr, "cannot set sample rate (%s)\n", snd_strerror (err)) ;
Lucio Andrés Illanes Albornoz b6e793
 		goto catch_error ;
Lucio Andrés Illanes Albornoz b6e793
 		} ;
Lucio Andrés Illanes Albornoz b6e793
@@ -203,12 +203,12 @@
Lucio Andrés Illanes Albornoz b6e793
 		goto catch_error ;
Lucio Andrés Illanes Albornoz b6e793
 		} ;
Lucio Andrés Illanes Albornoz b6e793
 
Lucio Andrés Illanes Albornoz b6e793
-	if ((err = snd_pcm_hw_params_set_buffer_size_near (alsa_dev, hw_params, &alsa_buffer_frames)) < 0)
Lucio Andrés Illanes Albornoz b6e793
+	if ((err = __snd_pcm_hw_params_set_buffer_size_near (alsa_dev, hw_params, &alsa_buffer_frames)) < 0)
Lucio Andrés Illanes Albornoz b6e793
 	{	fprintf (stderr, "cannot set buffer size (%s)\n", snd_strerror (err)) ;
Lucio Andrés Illanes Albornoz b6e793
 		goto catch_error ;
Lucio Andrés Illanes Albornoz b6e793
 		} ;
Lucio Andrés Illanes Albornoz b6e793
 
Lucio Andrés Illanes Albornoz b6e793
-	if ((err = snd_pcm_hw_params_set_period_size_near (alsa_dev, hw_params, &alsa_period_size, 0)) < 0)
Lucio Andrés Illanes Albornoz b6e793
+	if ((err = __snd_pcm_hw_params_set_period_size_near (alsa_dev, hw_params, &alsa_period_size, 0)) < 0)
Lucio Andrés Illanes Albornoz b6e793
 	{	fprintf (stderr, "cannot set period size (%s)\n", snd_strerror (err)) ;
Lucio Andrés Illanes Albornoz b6e793
 		goto catch_error ;
Lucio Andrés Illanes Albornoz b6e793
 		} ;
Lucio Andrés Illanes Albornoz b6e793
@@ -219,8 +219,8 @@
Lucio Andrés Illanes Albornoz b6e793
 		} ;
Lucio Andrés Illanes Albornoz b6e793
 
Lucio Andrés Illanes Albornoz b6e793
 	/* extra check: if we have only one period, this code won't work */
Lucio Andrés Illanes Albornoz b6e793
-	snd_pcm_hw_params_get_period_size (hw_params, &alsa_period_size, 0) ;
Lucio Andrés Illanes Albornoz b6e793
-	snd_pcm_hw_params_get_buffer_size (hw_params, &buffer_size) ;
Lucio Andrés Illanes Albornoz b6e793
+	__snd_pcm_hw_params_get_period_size (hw_params, &alsa_period_size, 0) ;
Lucio Andrés Illanes Albornoz b6e793
+	__snd_pcm_hw_params_get_buffer_size (hw_params, &buffer_size) ;
Lucio Andrés Illanes Albornoz b6e793
 	if (alsa_period_size == buffer_size)
Lucio Andrés Illanes Albornoz b6e793
 	{	fprintf (stderr, "Can't use period equal to buffer size (%lu == %lu)", alsa_period_size, buffer_size) ;
Lucio Andrés Illanes Albornoz b6e793
 		goto catch_error ;