cava: update no-posix-shmem.patch

This commit is contained in:
Leonid Pliushch 2020-11-09 01:06:20 +02:00
parent b61c3437ad
commit 2167c73307

View File

@ -1,22 +1,25 @@
diff -uNr cava-0.7.0/cava.c cava-0.7.0.mod/cava.c
--- cava-0.7.0/cava.c 2020-05-26 23:29:47.000000000 +0300
+++ cava-0.7.0.mod/cava.c 2020-06-20 22:57:21.423501150 +0300
@@ -505,10 +505,12 @@
diff -uNr cava-0.7.3/cava.c cava-0.7.3.mod/cava.c
--- cava-0.7.3/cava.c 2020-10-07 19:30:24.000000000 +0300
+++ cava-0.7.3.mod/cava.c 2020-11-09 01:04:14.583887869 +0200
@@ -476,6 +476,7 @@
audio.rate = 44100;
break;
#endif
+#ifndef __ANDROID__
case INPUT_SHMEM:
thr_id = pthread_create(&p_thread, NULL, input_shmem, (void *)&audio);
@@ -496,6 +497,7 @@
debug("got format: %d and rate %d\n", audio.format, audio.rate);
// audio.rate = 44100;
break;
+#endif
#ifdef PORTAUDIO
case INPUT_PORTAUDIO:
thr_id = pthread_create(&p_thread, NULL, input_portaudio, (void *)&audio);
diff -uNr cava-0.7.0/input/shmem.c cava-0.7.0.mod/input/shmem.c
--- cava-0.7.0/input/shmem.c 2020-05-26 23:29:47.000000000 +0300
+++ cava-0.7.0.mod/input/shmem.c 2020-06-20 22:58:08.319893092 +0300
diff -uNr cava-0.7.3/input/shmem.c cava-0.7.3.mod/input/shmem.c
--- cava-0.7.3/input/shmem.c 2020-10-07 19:30:24.000000000 +0300
+++ cava-0.7.3.mod/input/shmem.c 2020-11-09 01:04:42.796078960 +0200
@@ -1,6 +1,7 @@
#include "input/shmem.h"
#include "input/common.h"
@ -25,14 +28,14 @@ diff -uNr cava-0.7.0/input/shmem.c cava-0.7.0.mod/input/shmem.c
#include <sys/mman.h>
#include <sys/stat.h>
#include <sys/types.h>
@@ -80,3 +81,4 @@
@@ -89,3 +90,4 @@
}
return 0;
}
+#endif // __ANDROID__
diff -uNr cava-0.7.0/input/shmem.h cava-0.7.0.mod/input/shmem.h
--- cava-0.7.0/input/shmem.h 2020-05-26 23:29:47.000000000 +0300
+++ cava-0.7.0.mod/input/shmem.h 2020-06-20 22:57:46.439709609 +0300
diff -uNr cava-0.7.3/input/shmem.h cava-0.7.3.mod/input/shmem.h
--- cava-0.7.3/input/shmem.h 2020-10-07 19:30:24.000000000 +0300
+++ cava-0.7.3.mod/input/shmem.h 2020-11-09 01:04:42.796078960 +0200
@@ -1,5 +1,7 @@
// header file for shmem, part of cava.
-