--- timemachine-0.3.0.orig/src/main.c +++ timemachine-0.3.0/src/main.c @@ -208,56 +208,29 @@ /* Start the disk thread */ pthread_create(&dt, NULL, (void *)&writer_thread, NULL); -#ifdef HAVE_LIBREADLINE - if (console || !getenv("DISPLAY") || getenv("DISPLAY")[0] == '\0') { - int done = 0; - while (!done) { - char *line = readline("TimeMachine> "); - if (!line) { - printf("EOF\n"); - break; - } - if (line && *line) { - add_history(line); - if (strncmp(line, "q", 1) == 0) done = 1; - else if (strncmp(line, "start", 3) == 0) recording_start(); - else if (strncmp(line, "stop", 3) == 0) recording_stop(); - else if (strncmp(line, "help", 3) == 0) { - printf("Commands: start stop\n"); - } else { - printf("Unknown command\n"); - } - } - free(line); - } - } else -#endif - { - gtk_init(&argc, &argv); + gtk_init(&argc, &argv); - add_pixmap_directory(PACKAGE_DATA_DIR "/" PACKAGE "/pixmaps"); - add_pixmap_directory("pixmaps"); - add_pixmap_directory("../pixmaps"); - - img_on = create_pixbuf("on.png"); - img_off = create_pixbuf("off.png"); - img_busy = create_pixbuf("busy.png"); - icon_on = create_pixbuf("on-icon.png"); - icon_off = create_pixbuf("off-icon.png"); - - main_window = create_window(client_name); - gtk_window_set_icon(GTK_WINDOW(main_window), icon_off); - gtk_widget_show(main_window); - - bind_meters(); - g_timeout_add(100, meter_tick, NULL); + add_pixmap_directory(PACKAGE_DATA_DIR "/" PACKAGE "/pixmaps"); + add_pixmap_directory("pixmaps"); + add_pixmap_directory("../pixmaps"); + + img_on = create_pixbuf("on.png"); + img_off = create_pixbuf("off.png"); + img_busy = create_pixbuf("busy.png"); + icon_on = create_pixbuf("on-icon.png"); + icon_off = create_pixbuf("off-icon.png"); + + main_window = create_window(client_name); + gtk_window_set_icon(GTK_WINDOW(main_window), icon_off); + gtk_widget_show(main_window); + bind_meters(); + g_timeout_add(100, meter_tick, NULL); #ifdef HAVE_LADCCA - gtk_idle_add(idle_cb, cca_client); + gtk_idle_add(idle_cb, cca_client); #endif - gtk_main(); - } + gtk_main(); cleanup(); --- timemachine-0.3.0.orig/debian/menu +++ timemachine-0.3.0/debian/menu @@ -0,0 +1,3 @@ +?package(timemachine):needs=X11 section=Apps/Sound\ + hints="Professional,JACK" \ + title="JACK Timemachine" command="/usr/bin/timemachine" --- timemachine-0.3.0.orig/debian/control +++ timemachine-0.3.0/debian/control @@ -0,0 +1,24 @@ +Source: timemachine +Section: sound +Priority: optional +Maintainer: Robert Jordens +Build-Depends: debhelper (>> 4.1.0), cdbs, dh-buildinfo, docbook-to-man, + libjack0.80.0-dev | libjack-dev, libsndfile1-dev, libgtk2.0-dev, + libreadline4-dev, libncurses5-dev +Standards-Version: 3.6.1 + +Package: timemachine +Architecture: any +Depends: ${shlibs:Depends}, jackd (>= 0.80.0) +Description: JACK audio recorder for spontaneous and conservatory use + Timemachine writes the last 10 seconds of audio _before_ the button press + and everything from now on up to the next button press into a WAV-file. + . + The idea is that you doodle away with whatever is kicking around in your + studio and when you heard an interesting noise, you'd press record and + capture it, without having to try and recreate it. + . + It uses the JACK audio connection kit, an API that lets audio application + communicate with each other and share audio data in realtime. + . + Website: . --- timemachine-0.3.0.orig/debian/rules +++ timemachine-0.3.0/debian/rules @@ -0,0 +1,28 @@ +#!/usr/bin/make -f +# rules +# +# Robert Jordens +# +# This software may be used and distributed according to the terms +# of the GNU General Public License, incorporated herein by reference. +# +# $Id: rules 240 2004-01-17 16:53:09Z rj $ + + +include /usr/share/cdbs/1/class/makefile.mk +DEB_UPSTREAM_VERSION := $(shell echo $(DEB_VERSION) | sed 's/-[^-]*//') +# strip of a optionally added cvs patch (format: upstream+cvs-debian) +DEB_UPSTREAM_TARBALL_VERSION := $(shell echo $(DEB_UPSTREAM_VERSION) | sed 's/+[^+]*//') +include /usr/share/cdbs/1/class/autotools.mk +include /usr/share/cdbs/1/rules/debhelper.mk + +# after the directories are created but before dh_compress is run. +common-binary-post-install-arch:: + dh_buildinfo + +build/timemachine:: + /usr/bin/docbook-to-man debian/timemachine.sgml > debian/timemachine.1 + +clean:: + -rm -f debian/timemachine.1 + --- timemachine-0.3.0.orig/debian/watch +++ timemachine-0.3.0/debian/watch @@ -0,0 +1,2 @@ +version=2 +http://plugin.org.uk/timemachine/timemachine-(.*)\.tar\.gz debian uupdate --- timemachine-0.3.0.orig/debian/changelog +++ timemachine-0.3.0/debian/changelog @@ -0,0 +1,41 @@ +timemachine (0.3.0-1) unstable; urgency=low + + * new upstream release + * add libncurses5-dev and libreadline4-dev con Build-Depends: enables + command-line-mode + + -- Robert Jordens Thu, 4 Nov 2004 22:51:04 +0100 + +timemachine (0.2.5-1) unstable; urgency=low + + * new upstream release (configurable ringbuffer size) + + -- Robert Jordens Sun, 12 Sep 2004 22:49:55 +0200 + +timemachine (0.2.4-2) unstable; urgency=low + + * debian/watch: added watchfile + * add note about W64 WAV format and sampling rate to manpage; patch from + The Anarcat ; closes: Bug#257388 + + -- Robert Jordens Sun, 22 Aug 2004 01:08:23 +0200 + +timemachine (0.2.4-1) unstable; urgency=low + + * new upstream release + + upstream supports LADCCA, don't build with it yet. + + -- Robert Jordens Thu, 11 Mar 2004 15:51:13 +0100 + +timemachine (0.2.1-2) unstable; urgency=low + + * debian/{install,timemachine.desktop,menu}: added better menu and + desktop entries + + -- Robert Jordens Tue, 10 Feb 2004 21:58:40 +0100 + +timemachine (0.2.1-1) unstable; urgency=low + + * Initial Release; closes: Bug#230935 + + -- Robert Jordens Tue, 3 Feb 2004 17:30:10 +0100 --- timemachine-0.3.0.orig/debian/manpages +++ timemachine-0.3.0/debian/manpages @@ -0,0 +1 @@ +debian/timemachine.1 --- timemachine-0.3.0.orig/debian/compat +++ timemachine-0.3.0/debian/compat @@ -0,0 +1 @@ +4 --- timemachine-0.3.0.orig/debian/timemachine.desktop +++ timemachine-0.3.0/debian/timemachine.desktop @@ -0,0 +1,5 @@ +[Desktop Entry] +Name=JACK Timemachine +Exec=/usr/bin/timemachine +Terminal=false +Type=Application --- timemachine-0.3.0.orig/debian/copyright +++ timemachine-0.3.0/debian/copyright @@ -0,0 +1,26 @@ +This package was debianized by Robert Jordens on +Tue Feb 03 15:48:49 CET 2004. + +It was downloaded from: http://plugin.org.uk/timemachine/ + +Upstream Author: Steve Harris + +Copyright: + +This program is free software; you can redistribute it and/or modify it +under the terms of the GNU General Public License as published by the +Free Software Foundation; either version 2 of the License, or (at your +option) any later version. + +This program is distributed in the hope that it will be useful, but +WITHOUTANY WARRANTY; without even the implied warranty of +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +General Public License for more details. + +You should have received a copy of the GNU General Public License along +with this program; if not, write to the Free Software Foundation, Inc., +59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. + +On Debian systems, the complete text of the GNU General Public License +can be found in /usr/share/common-licenses/GPL file. + --- timemachine-0.3.0.orig/debian/timemachine.sgml +++ timemachine-0.3.0/debian/timemachine.sgml @@ -0,0 +1,158 @@ +Robert"> + Jordens"> + Mai 9, 2002"> + 1"> + jordens@debian.org"> + + TIMEMACHINE"> + + Debian"> + GNU"> +]> + + + +
+ &dhemail; +
+ + &dhfirstname; + &dhsurname; + + + 2004 + &dhusername; + + &dhdate; +
+ + &dhucpackage; + + &dhsection; + + + &dhpackage; + + JACK audio recorder for spontaneous and conservatory use + + + + + &dhpackage; + + + <number of channels> + <JACK client name> + <file prefix> + + + + + DESCRIPTION + + This manual page documents briefly the + &dhpackage; tool. + + This manual page was written for the &debian; distribution + because the original program does not have a manual page. + + &dhpackage; writes the last 10 + seconds of audio _before_ the button press and everything from now + on up to the next button press into a WAV-file. + The idea is that you doodle away with whatever is kicking + around in your studio and when you heard an interesting noise, you'd + press record and capture it, without having to try and recreate it. + + Run it with &dhpackage; then connect it up with + a jack patchbay app. To start recording click in the window, to + stop recording click in the window again. + It will create a file following tm-*.wav, with an + ISO 8601 timestamp, eg tm-2003-01-19T20:47:03.wav. The time is the + time that the recording starts from, not when you click. + It uses the JACK audio connection kit, an API that lets audio + application communicate with each other and share audio data in + realtime. + + The generated file will be a W64 file, a valid but + unusual WAV format that might not be recognized by some + programs. Binaries linked with libsndfile should be able to + read it. Also, note that the sample rate of the file with be + the same as the sample rate jackd is + running at when &dhpackage; is started. + + + + OPTIONS + + + + + + + Help: show available flags. + + + + + + + Specifies the numer of channels to listen on, record and write + to the file. Valind numbers: 1-8, 2 is the default. + + + + + + + Name with which to register as a JACK client. Defaults + to "TimeMachine". + + + + + + + The prefix for WAV files to be written. Defaults to "tm-". + + + + + + + + SEE ALSO + + jackd(1) + + + + AUTHOR + This manual page was written by &dhusername; &dhemail; for the + &debian; system (but may be used by others). Permission is granted + to copy, distribute and/or modify this document under the terms of + the GNU General Public License, Version 2. On + Debian systems, the full text of this license can be found in the + file /usr/share/common-licenses/GPL-2. + +
+ + + + --- timemachine-0.3.0.orig/debian/install +++ timemachine-0.3.0/debian/install @@ -0,0 +1 @@ +debian/timemachine.desktop usr/share/gnome/apps/Multimedia/