summaryrefslogtreecommitdiffhomepage
path: root/patches/libsndfile-1.0.28.local.patch
diff options
context:
space:
mode:
authorLucio Andrés Illanes Albornoz <lucio@lucioillanes.de>2018-06-10 09:10:38 +0000
committerLucio Andrés Illanes Albornoz <lucio@lucioillanes.de>2018-06-10 09:10:38 +0000
commitb6e7932b72a7189327e397c6d27c4d39b5dc57ac (patch)
tree3a025ce4925a215e2a85bc41fe22f333d8ee18a0 /patches/libsndfile-1.0.28.local.patch
parent2b1c70e78382aceebeeeac75643481ede31b1296 (diff)
downloadmidipix_build-b6e7932b72a7189327e397c6d27c4d39b5dc57ac.tar.bz2
midipix_build-b6e7932b72a7189327e397c6d27c4d39b5dc57ac.tar.xz
vars/build.vars:native_packages_deps: adds libsndfile v1.0.28 (via Redfoxmoon.)
patches/libsndfile-1.0.28.local.patch: via Redfoxmoon.
Diffstat (limited to 'patches/libsndfile-1.0.28.local.patch')
-rw-r--r--patches/libsndfile-1.0.28.local.patch38
1 files changed, 38 insertions, 0 deletions
diff --git a/patches/libsndfile-1.0.28.local.patch b/patches/libsndfile-1.0.28.local.patch
new file mode 100644
index 00000000..52adc592
--- /dev/null
+++ b/patches/libsndfile-1.0.28.local.patch
@@ -0,0 +1,38 @@
+diff -ru libsndfile-1.0.28.orig/programs/sndfile-play.c libsndfile-1.0.28/programs/sndfile-play.c
+--- libsndfile-1.0.28.orig/programs/sndfile-play.c 2017-04-01 09:18:02.000000000 +0200
++++ libsndfile-1.0.28/programs/sndfile-play.c 2018-06-10 03:16:32.784821054 +0200
+@@ -193,7 +193,7 @@
+ goto catch_error ;
+ } ;
+
+- if ((err = snd_pcm_hw_params_set_rate_near (alsa_dev, hw_params, &samplerate, 0)) < 0)
++ if ((err = __snd_pcm_hw_params_set_rate_near (alsa_dev, hw_params, &samplerate, 0)) < 0)
+ { fprintf (stderr, "cannot set sample rate (%s)\n", snd_strerror (err)) ;
+ goto catch_error ;
+ } ;
+@@ -203,12 +203,12 @@
+ goto catch_error ;
+ } ;
+
+- if ((err = snd_pcm_hw_params_set_buffer_size_near (alsa_dev, hw_params, &alsa_buffer_frames)) < 0)
++ if ((err = __snd_pcm_hw_params_set_buffer_size_near (alsa_dev, hw_params, &alsa_buffer_frames)) < 0)
+ { fprintf (stderr, "cannot set buffer size (%s)\n", snd_strerror (err)) ;
+ goto catch_error ;
+ } ;
+
+- if ((err = snd_pcm_hw_params_set_period_size_near (alsa_dev, hw_params, &alsa_period_size, 0)) < 0)
++ if ((err = __snd_pcm_hw_params_set_period_size_near (alsa_dev, hw_params, &alsa_period_size, 0)) < 0)
+ { fprintf (stderr, "cannot set period size (%s)\n", snd_strerror (err)) ;
+ goto catch_error ;
+ } ;
+@@ -219,8 +219,8 @@
+ } ;
+
+ /* extra check: if we have only one period, this code won't work */
+- snd_pcm_hw_params_get_period_size (hw_params, &alsa_period_size, 0) ;
+- snd_pcm_hw_params_get_buffer_size (hw_params, &buffer_size) ;
++ __snd_pcm_hw_params_get_period_size (hw_params, &alsa_period_size, 0) ;
++ __snd_pcm_hw_params_get_buffer_size (hw_params, &buffer_size) ;
+ if (alsa_period_size == buffer_size)
+ { fprintf (stderr, "Can't use period equal to buffer size (%lu == %lu)", alsa_period_size, buffer_size) ;
+ goto catch_error ;