Kjetil Matheussen | 4 Jul 13:36 2015
Picon

New build of QJackCtl for Windows

Hi all,

The build of qjackctl included with jackdmp for windows is getting really old.
The biggest problem is that the default "startup time" is set too low, making it
seem like "jack crashes". (I"ve got many complains that "jack crashes").
Another problem is that you manually have to append "-S" to the "Server Prefix".

So here:


...I've cloned the official qjackctl repository, fixed these two problems,
and added some files to make it straight forward to build qjackctl under mingw32.
(Building is just running the "build_mingw32.sh" script)

Windows binary: http://folk.uio.no/~ksvalast/qjackctl.zip

Perhaps this build, or something similar, can be included in the next release of jack for windows?

_______________________________________________
Jack-Devel mailing list
Jack-Devel <at> lists.jackaudio.org
http://lists.jackaudio.org/listinfo.cgi/jack-devel-jackaudio.org
Paul Davis | 3 Jul 03:09 2015

[jackaudio/jack1] 0abd99: [metadata] fix unfreed DBT key/data tuples causing...

  Branch: refs/heads/master
  Home:   https://github.com/jackaudio/jack1
  Commit: 0abd99b2d1278373d958300d2575f5964e161acb
      https://github.com/jackaudio/jack1/commit/0abd99b2d1278373d958300d2575f5964e161acb
  Author: rncbc <rncbc <at> gamma.rncbc.lan>
  Date:   2015-04-19 (Sun, 19 Apr 2015)

  Changed paths:
    M libjack/metadata.c

  Log Message:
  -----------
  [metadata] fix unfreed DBT key/data tuples causing several mem-leaks.

  Commit: 57c2bc1d4a2559e2d462e394ba06dd827740f874
      https://github.com/jackaudio/jack1/commit/57c2bc1d4a2559e2d462e394ba06dd827740f874
  Author: rncbc <rncbc <at> gamma.rncbc.lan>
  Date:   2015-04-19 (Sun, 19 Apr 2015)

  Changed paths:
    M libjack/metadata.c

  Log Message:
  -----------
  [metadata] fix unfreed DBT key/data tuples causing several mem-leaks. (2)

  Commit: 4f4523bb00a3f12169e205d18bab3aceab50bce0
      https://github.com/jackaudio/jack1/commit/4f4523bb00a3f12169e205d18bab3aceab50bce0
  Author: rncbc <rncbc <at> gamma.rncbc.lan>
  Date:   2015-04-19 (Sun, 19 Apr 2015)

  Changed paths:
    M libjack/metadata.c

  Log Message:
  -----------
  [metadata] fix unfreed DBT key/data tuples causing several mem-leaks. (3)

  Commit: 71ad620daab1e9a844edfed6a10d07c4a89506f1
      https://github.com/jackaudio/jack1/commit/71ad620daab1e9a844edfed6a10d07c4a89506f1
  Author: rncbc <rncbc <at> gamma.rncbc.lan>
  Date:   2015-04-19 (Sun, 19 Apr 2015)

  Changed paths:
    M libjack/metadata.c

  Log Message:
  -----------
  [metadata] fix unfreed DBT key/data tuples causing several mem-leaks. (4)

  Commit: 3e8e8ee917545750d7a8408940348c45c2df1b01
      https://github.com/jackaudio/jack1/commit/3e8e8ee917545750d7a8408940348c45c2df1b01
  Author: rncbc <rncbc <at> gamma.rncbc.lan>
  Date:   2015-04-19 (Sun, 19 Apr 2015)

  Changed paths:
    M libjack/metadata.c

  Log Message:
  -----------
  [metadata] fix unfreed DBT key/data tuples causing several mem-leaks. (5)

  Commit: 3b9c817a9488d00d5c0d37c48af092e698d1f616
      https://github.com/jackaudio/jack1/commit/3b9c817a9488d00d5c0d37c48af092e698d1f616
  Author: rncbc <rncbc <at> gamma.rncbc.lan>
  Date:   2015-04-19 (Sun, 19 Apr 2015)

  Changed paths:
    M libjack/metadata.c

  Log Message:
  -----------
  [metadata] fix unfreed DBT key/data tuples causing several mem-leaks. (6)

  Commit: 940c811392eae31ac778b424bc38b0b517a2a8d5
      https://github.com/jackaudio/jack1/commit/940c811392eae31ac778b424bc38b0b517a2a8d5
  Author: rncbc <rncbc <at> gamma.rncbc.lan>
  Date:   2015-04-20 (Mon, 20 Apr 2015)

  Changed paths:
    M libjack/metadata.c

  Log Message:
  -----------
  [metadata] fix unfreed DBT key/data tuples causing several mem-leaks. (7)

  Commit: 60d74536e66510baca02a0718fffc256b107d2fc
      https://github.com/jackaudio/jack1/commit/60d74536e66510baca02a0718fffc256b107d2fc
  Author: Robin Gareus <robin <at> gareus.org>
  Date:   2015-05-01 (Fri, 01 May 2015)

  Changed paths:
    M libjack/client.c

  Log Message:
  -----------
  support [unescaped] double-quotes in jackdrc

allow autostart of jackd on OSX where device-names can
contain spaces.

  Commit: 4f0fe014fb05a322f5cd56e718f2929df365b642
      https://github.com/jackaudio/jack1/commit/4f0fe014fb05a322f5cd56e718f2929df365b642
  Author: Dominic Sacré <dominic.sacre <at> gmx.de>
  Date:   2015-05-01 (Fri, 01 May 2015)

  Changed paths:
    M jackd/engine.c

  Log Message:
  -----------
  fix segfault caused by incorrect jack_error() format string

  Commit: 6816710adc72bd22f8968e2627459d142f72ce66
      https://github.com/jackaudio/jack1/commit/6816710adc72bd22f8968e2627459d142f72ce66
  Author: rncbc <rncbc <at> gamma.rncbc.lan>
  Date:   2015-05-01 (Fri, 01 May 2015)

  Changed paths:
    M libjack/metadata.c

  Log Message:
  -----------
  [metadata] fix unfreed DBT key/data tuples causing several mem-leaks.

  Commit: a1bf5da92ef3e71cd1405c8a2472234249c87dd2
      https://github.com/jackaudio/jack1/commit/a1bf5da92ef3e71cd1405c8a2472234249c87dd2
  Author: rncbc <rncbc <at> gamma.rncbc.lan>
  Date:   2015-05-01 (Fri, 01 May 2015)

  Log Message:
  -----------
  Merge branch 'master' of https://github.com/rncbc/jack1

  Commit: 2a2047cd2ea8ac3ee4638db7a625123552573871
      https://github.com/jackaudio/jack1/commit/2a2047cd2ea8ac3ee4638db7a625123552573871
  Author: rncbc <rncbc <at> gamma.rncbc.lan>
  Date:   2015-05-02 (Sat, 02 May 2015)

  Changed paths:
    M drivers/alsa_midi/alsa_midi.c

  Log Message:
  -----------
  Merge branch 'fix_alsa_midi_freewheeling'

  Commit: 5af5815c47630b77cc71c91a460f8aa398017cf7
      https://github.com/jackaudio/jack1/commit/5af5815c47630b77cc71c91a460f8aa398017cf7
  Author: Paul Davis <paul <at> linuxaudiosystems.com>
  Date:   2015-07-02 (Thu, 02 Jul 2015)

  Changed paths:
    M libjack/metadata.c

  Log Message:
  -----------
  Merge pull request #20 from rncbc/master

[metadata] fix unfreed DBT key/data tuples causing several mem-leaks.

Compare: https://github.com/jackaudio/jack1/compare/b7099ac25d1b...5af5815c4763
_______________________________________________
Jack-Devel mailing list
Jack-Devel <at> lists.jackaudio.org
http://lists.jackaudio.org/listinfo.cgi/jack-devel-jackaudio.org
Paul Davis | 3 Jul 03:08 2015

[jackaudio/jack1] bdb6e8: including S24_LE/BE formats to linux alsa driver

  Branch: refs/heads/master
  Home:   https://github.com/jackaudio/jack1
  Commit: bdb6e8ec52f2cdf899a925292fda5a5de982b5dd
      https://github.com/jackaudio/jack1/commit/bdb6e8ec52f2cdf899a925292fda5a5de982b5dd
  Author: falkTX <falktx <at> gmail.com>
  Date:   2015-06-26 (Fri, 26 Jun 2015)

  Changed paths:
    M drivers/alsa/alsa_driver.c

  Log Message:
  -----------
  including S24_LE/BE formats to linux alsa driver

  Commit: b7099ac25d1b8de34994c69365d2cda032cf5d96
      https://github.com/jackaudio/jack1/commit/b7099ac25d1b8de34994c69365d2cda032cf5d96
  Author: Paul Davis <paul <at> linuxaudiosystems.com>
  Date:   2015-07-02 (Thu, 02 Jul 2015)

  Changed paths:
    M drivers/alsa/alsa_driver.c

  Log Message:
  -----------
  Merge pull request #23 from falkTX/master

including S24_LE/BE formats to linux alsa driver

Compare: https://github.com/jackaudio/jack1/compare/3340034dfbf2...b7099ac25d1b
_______________________________________________
Jack-Devel mailing list
Jack-Devel <at> lists.jackaudio.org
http://lists.jackaudio.org/listinfo.cgi/jack-devel-jackaudio.org
Pawel | 2 Jul 21:51 2015
Picon

Odp: Re: Odp: Re: jack1: jack_transport does not work as master

I send a patch once on this list and this is a "patched" version.
I keep this, because it was very helpfull while testing and improve other apps ( like hydrogen , fsthost ),
especially tempo change issues. Not perfect but better than "official", especially in low tempos ( like
30 BPM ).
.. so yes you are inconvincible ;-)

P.

Dnia Czwartek, 2 Lipca 2015 20:17 Paul Davis <paul <at> linuxaudiosystems.com> napisał(a) 
> Was this the stuff you tried (unsuccessfully) to convince me need to
> go into the tools repo?
> 
> On Thu, Jul 2, 2015 at 1:12 PM, Pawel <xj <at> wp.pl> wrote:
> > Hi,
> >
> > Tobias, you can check my slightly improved version of jack_transport:
> > https://sourceforge.net/p/nxjsm/code/HEAD/tree/trunk/tools/transport.c
> >
> > I'm also the author of new Hydrogen jack-master code. It's works much better , but probably not perfect ;-)
> >
> > P.
> >
> > Dnia Czwartek, 2 Lipca 2015 18:57 Paul Davis <paul <at> linuxaudiosystems.com> napisał(a)
> >> Frankly, computing BBT time has never been part of "how to use the
> >> JACK API". It should probably never have been included in the source
> >> code in the first place.
> >>
> >> Managing BBT time is *extremely* complex - we have worked on it for
> >> years in Ardour and it still has issues. I'd prefer to just rip it
> >> out.
> >>
> >> On Thu, Jul 2, 2015 at 12:47 PM, Tobias Hoffmann
> >> <lfile-list <at> thax.hardliners.org> wrote:
> >> > On 02/07/15 17:30, Tobias Hoffmann wrote:
> >> >>
> >> >> On 02/07/15 15:38, Paul Davis wrote:
> >> >>>
> >> >>> jack_transport is not intended to act as a the time master.
> >> >>
> >> >> Well, comparing example-clients/transport_client.c and tools/transport.c,
> >> >> I'd say the one big difference between the two is that tools/transport.c
> >> >> (aka jack_transport) can act as a *simple* timebase master...
> >> >
> >> >
> >> > Ok, I see now that the BBT update algorithm (in the "else" branch in
> >> > timebase()) in transport.c is quite broken, because it accumulates rounding
> >> > errors. However always using the first, recalculating branch (basically: if
> >> > (true)) seems to be stable -- or at least: better than Hydrogen's timebase
> >> > master, which updates the BBT only every few cycles... (I've read that
> >> > somewhere a completely rewritten Jack Master implementation for Hydrogen is
> >> > available, which I have not tested yet).
> >> >
> >> > I find it quite sad that even some code distributed in the jack tarball is
> >> > an example of how NOT to use the Jack API ...
> >> >
> >> >   Tobias
> >> >
> >> >
> >> >
> >> >
> >> >
> >> _______________________________________________
> >> Jack-Devel mailing list
> >> Jack-Devel <at> lists.jackaudio.org
> >> http://lists.jackaudio.org/listinfo.cgi/jack-devel-jackaudio.org
> >
> >
> >
> > _______________________________________________
> > Jack-Devel mailing list
> > Jack-Devel <at> lists.jackaudio.org
> > http://lists.jackaudio.org/listinfo.cgi/jack-devel-jackaudio.org
Pawel | 2 Jul 19:12 2015
Picon

Odp: Re: jack1: jack_transport does not work as master

Hi,

Tobias, you can check my slightly improved version of jack_transport:
https://sourceforge.net/p/nxjsm/code/HEAD/tree/trunk/tools/transport.c

I'm also the author of new Hydrogen jack-master code. It's works much better , but probably not perfect ;-)

P.

Dnia Czwartek, 2 Lipca 2015 18:57 Paul Davis <paul <at> linuxaudiosystems.com> napisał(a) 
> Frankly, computing BBT time has never been part of "how to use the
> JACK API". It should probably never have been included in the source
> code in the first place.
> 
> Managing BBT time is *extremely* complex - we have worked on it for
> years in Ardour and it still has issues. I'd prefer to just rip it
> out.
> 
> On Thu, Jul 2, 2015 at 12:47 PM, Tobias Hoffmann
> <lfile-list <at> thax.hardliners.org> wrote:
> > On 02/07/15 17:30, Tobias Hoffmann wrote:
> >>
> >> On 02/07/15 15:38, Paul Davis wrote:
> >>>
> >>> jack_transport is not intended to act as a the time master.
> >>
> >> Well, comparing example-clients/transport_client.c and tools/transport.c,
> >> I'd say the one big difference between the two is that tools/transport.c
> >> (aka jack_transport) can act as a *simple* timebase master...
> >
> >
> > Ok, I see now that the BBT update algorithm (in the "else" branch in
> > timebase()) in transport.c is quite broken, because it accumulates rounding
> > errors. However always using the first, recalculating branch (basically: if
> > (true)) seems to be stable -- or at least: better than Hydrogen's timebase
> > master, which updates the BBT only every few cycles... (I've read that
> > somewhere a completely rewritten Jack Master implementation for Hydrogen is
> > available, which I have not tested yet).
> >
> > I find it quite sad that even some code distributed in the jack tarball is
> > an example of how NOT to use the Jack API ...
> >
> >   Tobias
> >
> >
> >
> >
> >
> _______________________________________________
> Jack-Devel mailing list
> Jack-Devel <at> lists.jackaudio.org
> http://lists.jackaudio.org/listinfo.cgi/jack-devel-jackaudio.org
Paul Davis | 2 Jul 18:21 2015

[jackaudio/jack1] 334003: update jack (headers) submodule

  Branch: refs/heads/master
  Home:   https://github.com/jackaudio/jack1
  Commit: 3340034dfbf223182101ed08bea5524a1b222a4f
      https://github.com/jackaudio/jack1/commit/3340034dfbf223182101ed08bea5524a1b222a4f
  Author: Paul Davis <paul <at> linuxaudiosystems.com>
  Date:   2015-07-02 (Thu, 02 Jul 2015)

  Changed paths:
    M jack

  Log Message:
  -----------
  update jack (headers) submodule

_______________________________________________
Jack-Devel mailing list
Jack-Devel <at> lists.jackaudio.org
http://lists.jackaudio.org/listinfo.cgi/jack-devel-jackaudio.org
Paul Davis | 2 Jul 18:21 2015

[jackaudio/headers] 23c299: add new public API: jack_port_rename

  Branch: refs/heads/master
  Home:   https://github.com/jackaudio/headers
  Commit: 23c29914806edefb496af098e937cc09e472bbbe
      https://github.com/jackaudio/headers/commit/23c29914806edefb496af098e937cc09e472bbbe
  Author: Paul Davis <paul <at> linuxaudiosystems.com>
  Date:   2015-07-02 (Thu, 02 Jul 2015)

  Changed paths:
    M jack.h

  Log Message:
  -----------
  add new public API: jack_port_rename

This is semantically similar to jack_port_set_name() but because it is also passed a jack_client_t*, it can
contact the server to ensure that not only the rename is done but that port rename callbacks are delivered
appropriately

_______________________________________________
Jack-Devel mailing list
Jack-Devel <at> lists.jackaudio.org
http://lists.jackaudio.org/listinfo.cgi/jack-devel-jackaudio.org
Paul Davis | 2 Jul 18:14 2015

[jackaudio/jack1] 601e3f: remove attempted list of options and tell user to ...

  Branch: refs/heads/master
  Home:   https://github.com/jackaudio/jack1
  Commit: 601e3fe33ca2807acf8a7ebc5c056e0eed9b811a
      https://github.com/jackaudio/jack1/commit/601e3fe33ca2807acf8a7ebc5c056e0eed9b811a
  Author: Paul Davis <paul <at> linuxaudiosystems.com>
  Date:   2015-07-02 (Thu, 02 Jul 2015)

  Changed paths:
    M jackd/jackd.c

  Log Message:
  -----------
  remove attempted list of options and tell user to see documentation

  Commit: 0ac9ef7c813f4e67ab1e9a5fb4aea515fd9f1b31
      https://github.com/jackaudio/jack1/commit/0ac9ef7c813f4e67ab1e9a5fb4aea515fd9f1b31
  Author: Paul Davis <paul <at> linuxaudiosystems.com>
  Date:   2015-07-02 (Thu, 02 Jul 2015)

  Changed paths:
    M include/internal.h
    M jackd/engine.c
    M libjack/client.c
    M libjack/local.h
    M libjack/port.c

  Log Message:
  -----------
  add support for port rename callback.

  Commit: 54f1272d2145b2e2cfb6c650ffce5179645434e2
      https://github.com/jackaudio/jack1/commit/54f1272d2145b2e2cfb6c650ffce5179645434e2
  Author: Paul Davis <paul <at> linuxaudiosystems.com>
  Date:   2015-07-02 (Thu, 02 Jul 2015)

  Changed paths:
    M libjack/client.c
    M libjack/local.h

  Log Message:
  -----------
  fix a couple of issues with port rename callback (duplicate structure members, missing break statement)

  Commit: 7f52e37c3966a88153394d4d49d3a3893314dd36
      https://github.com/jackaudio/jack1/commit/7f52e37c3966a88153394d4d49d3a3893314dd36
  Author: Paul Davis <paul <at> linuxaudiosystems.com>
  Date:   2015-07-02 (Thu, 02 Jul 2015)

  Changed paths:
    M tools

  Log Message:
  -----------
  updated tools submodule

Compare: https://github.com/jackaudio/jack1/compare/6685cc737eec...7f52e37c3966
_______________________________________________
Jack-Devel mailing list
Jack-Devel <at> lists.jackaudio.org
http://lists.jackaudio.org/listinfo.cgi/jack-devel-jackaudio.org
Paul Davis | 2 Jul 18:03 2015

[jackaudio/tools] 2ea43f: add port rename callback to jack_evmon

  Branch: refs/heads/master
  Home:   https://github.com/jackaudio/tools
  Commit: 2ea43fc303d0286ba16ffa2a41f1de82f8accb64
      https://github.com/jackaudio/tools/commit/2ea43fc303d0286ba16ffa2a41f1de82f8accb64
  Author: Paul Davis <paul <at> linuxaudiosystems.com>
  Date:   2015-07-02 (Thu, 02 Jul 2015)

  Changed paths:
    M evmon.c

  Log Message:
  -----------
  add port rename callback to jack_evmon

_______________________________________________
Jack-Devel mailing list
Jack-Devel <at> lists.jackaudio.org
http://lists.jackaudio.org/listinfo.cgi/jack-devel-jackaudio.org
Tobias Hoffmann | 2 Jul 14:20 2015

jack1: jack_transport does not work as master

Hi,

I'm still using debian's jackd1/libjack0 package (0.124.1) and have not 
tried to reproduce this with git master yet (at least, I haven't seen an 
obvious fix in the commit log since 0.124.1).

In one terminal window I run  jack_showtime.
In the other window I do:

jack_transport
 > tempo 96        # just in case
 > master
 > play                 # does not

jack_showtime correctly shows the state, but no BBT information. From my 
own client I know that jack_position_t::valid==0.

Some testing revealed that the timebase() callback in tools/transport.c 
is *not called at all*, although jack_set_timebase_callback is called 
and returns without error.
- But everything works fine when I switch to the jack2 stack...

And in some cases, when switching between/enabling/disabling different 
Transport masters,
jack_position_t::valid retains the JackPositionBBT flag (and stale 
information) -- but no-one updates them any more...

Maybe related: I've seen some strange values (*very* large negative 
number) for bar_start_tick when using ardour4.1.
The very first time (and after rewind?) it contains 0.0 and is not 
updated. A quick glance into the ardour source code reveals that this 
field is not implemented yet. I could probably live with that.
BUT: After stopping+starting the playback, these strange values 
appear... How can I know whether some value in this field is usable at 
all -- except for some heuristics?

Back to the original topic... in both cases the jack_position_t struct 
contains stale/random values, instead of starting from a "clean" base -- 
maybe memset(,0,) is all that is needed here?

   Tobias
debianuser | 1 Jul 19:45 2015

[PATCH] Don't start pcm if its already RUNNING

A few months ago we'd digged jackd code in #alsa IRC trying to find why it
fails with "ALSA: could not start playback (File descriptor in bad state)"
when run on top "type bluetooth" pcm.

The reason was in a single line (both in jack1/drivers/alsa/alsa_driver.c
and jack2/linux/alsa/alsa_driver.c):
  if ((err = snd_pcm_start (driver->playback_handle)) < 0) {
which always fails after snd_pcm_mmap_commit() filling the buffer,
because pcm's already in RUNNING state and can't be started again:
> http://www.alsa-project.org/alsa-doc/alsa-lib/pcm.html
> For playback, if samples in ring buffer is equal or greater than
> the start threshold parameters and the stream is not running,
> the stream will be started automatically

The following small patch fixes it for both jack1 and jack2:
--- alsa_driver.c
+++ alsa_driver.c       
<at> <at> -1055,7 +1055,8 <at> <at> alsa_driver_start (alsa_driver_t *driver
                                     driver->user_nperiods
                                     * driver->frames_per_cycle);
                
-               if ((err = snd_pcm_start (driver->playback_handle)) < 0) {
+               if (snd_pcm_state(driver->playback_handle) != SND_PCM_STATE_RUNNING
+                   && (err = snd_pcm_start (driver->playback_handle)) < 0) {
                        jack_error ("ALSA: could not start playback (%s)",
                                    snd_strerror (err));
                        return -1;

_______________________________________________
Jack-Devel mailing list
Jack-Devel <at> lists.jackaudio.org
http://lists.jackaudio.org/listinfo.cgi/jack-devel-jackaudio.org

Gmane