shithub: neindaw

Download patch

ref: 6ea764ff9cc93aab462e4a7db6796d149175e5d2
parent: b63c36f9089a10ddccf6fa22d71fa35363fc7f82
author: Sigrid Haflínudóttir <ftrvxmtrx@gmail.com>
date: Thu May 14 03:51:35 EDT 2020

piper: fix recording

--- /dev/null
+++ b/piper/examples/ay.orca
@@ -1,0 +1,17 @@
+.........................................................
+...............33C7......................................
+.................5C2.....................................
+............D2..1A1..3C3..4C3............................
+............*;00f2f5:c2ff:a1ff...........................
+................................D........................
+............D....................;10C2gf:f3fh............
+.............;bpm120;vol100..............................
+.........................................................
+............D............................................
+.............$bpm:120....................................
+.........................................................
+.........................................................
+.........................................................
+.........................................................
+.........................................................
+.........................................................
--- a/piper/examples/aykick.orca
+++ /dev/null
@@ -1,17 +1,0 @@
-.........................................................
-...............33C7......................................
-.................5C2.....................................
-............D2..1A1..3C3..4C3............................
-............*;00f2f5:c2ff:a1ff...........................
-................................D........................
-............D....................;10C2gf:f3fh............
-.............;bpm120;vol100..............................
-.........................................................
-............D............................................
-.............$bpm:120....................................
-.........................................................
-.........................................................
-.........................................................
-.........................................................
-.........................................................
-.........................................................
--- a/piper/piper.c
+++ b/piper/piper.c
@@ -248,7 +248,7 @@
 		}
 		if (write(audio, pcm, 2*Bufframes*sizeof(*pcm)) < 0)
 			break;
-		if (write(record, pcm, 2*Bufframes*sizeof(*pcm)) < 0)
+		if (record >= 0 && write(record, pcm, 2*Bufframes*sizeof(*pcm)) < 0)
 			break;
 	}