shithub: pplay

Download patch

ref: 8d5de3e1ab2a9e0e85ace4a1a85d58055a7de730
parent: a296de199a408c080b5c991a4250596049baa7af
author: qwx <[email protected]>
date: Tue Oct 31 23:29:51 EDT 2023

hide debug flag and enable traces only when set

--- a/pplay.c
+++ b/pplay.c
@@ -98,7 +98,7 @@
 static void
 usage(void)
 {
-	fprint(2, "usage: %s [-Dbc] [pcm]\n", argv0);
+	fprint(2, "usage: %s [-bc] [pcm]\n", argv0);
 	threadexits("usage");
 }
 
@@ -112,7 +112,7 @@
 
 	notriob = 0;
 	ARGBEGIN{
-	case 'D': debug = 1; debugdraw = 1; break;
+	case 'D': debug = 1; break;
 	case 'b': notriob = 1; break;
 	case 'c': cat = 1; break;
 	default: usage();
@@ -170,7 +170,7 @@
 			switch(r){
 			case Kdel:
 			case 'q': quit();
-			case 'D': debug ^= 1; debugdraw ^= 1; refresh(Drawrender); break;
+			case 'D': debugdraw ^= 1; refresh(Drawrender); break;
 			case 'S': stereo ^= 1; redraw(1); break;
 			case ' ': toggleplay(); break;
 			case 'b': setjump(current->from); break;