[LAU] jack_capture not working since 0.9.17

Peder Hedlund peder at musikhuset.org
Fri Aug 15 16:22:28 EDT 2008


Quoting "Kjetil S. Matheussen" <k.s.matheussen at notam02.no>:

>
> Peder Hedlund:
>
>> There's something fishy going on in .18 and onwards.
> Thanks for the report. 0.9.28 is just put out.
>
> Please cc me next time. :-)
> Since I'm reading the list in digest mode it takes some
> time before reading the messages.

No problem (for me anyway). For my modest use .17 was just fine.


>> And a trivial note: once you've started the GUI there seems to be no
>> way of ending it apart from Ctrl-C or killing the process.
>
> You mean jack_capture_gui?
> Well, it should stop if you press Ctrl-C.

Assuming you start it from a terminal window and Ctrl-C in that.
But what if someone runs it from a shortcut?
May I propose this patch (here's to hoping the email will preserve  
whitespace):

--- jack_capture-0.9.28/jack_capture_gui	2008-08-15 19:23:05.307743667 +0200
+++ jack_capture-0.9.28/jack_capture_gui_new	2008-08-15  
21:59:53.837317418 +0200
@@ -15,7 +15,13 @@
      0) jack_capture $OPTIONS | Xdialog --stdout --msgbox " RECORDING  
IN PROGRESS\n PRESS OK TO STOP REC " 10 40
         echo "Recording stopped"
      ;;
-    1) Xdialog --msgbox "Ok no recording started" 10 40
+    1) Xdialog --stdout --yesno "Ok. No recording started\n Press No  
to exit" 10 40
+       case "$?" in
+          0)
+          ;;
+          1) exit 0
+          ;;
+       esac
      ;;
    esac
  done

It should propably be done with something other than --yesno (since  
the button will be localized and might not display the word "No") but  
I'm not fluid in Xdialog and it's better than nothing, I guess.

Hatar Norge! Stjäla ett svenskt OS-brons i simning (Sara Nordenstam)!! ;)

- Peder



More information about the Linux-audio-user mailing list