#20 Jack driver: autodetect count and rate in advance

closed
Nick Copeland
3
2009-06-16
2009-06-01
Nick Copeland
No

When connecting to Jack then the sampling rate and period counts need to match up. They have to be known in advance since the MIDI thread already needs to initialise parameters before the audio thread is opened. The audio thread only starts and connects to jackd when the GUI has requested an emulator.

It is not excessive work, it needs a simple helper program, and example of which was once provided, that polls the jackd for its running parameters and allows startBristol to pass them as parameters.

Discussion

  • Nick Copeland
    Nick Copeland
    2009-06-01

    • summary: Jack autoconnect: determine count and rate in advance --> Jack driver: autodetect count and rate in advance
     
  • Nick Copeland
    Nick Copeland
    2009-06-01

    Coded up a program to poll the jackd and returns a string containing sample rate and period size. If the daemon was not running it gets started which is why this has not been coded previously, its sloppy but then I don't see how else it can be done authoritatively.

    Code will be in the next upload.

     
  • Nick Copeland
    Nick Copeland
    2009-06-01

    • status: open --> pending
     
  • This Tracker item was closed automatically by the system. It was
    previously set to a Pending status, and the original submitter
    did not respond within 14 days (the time period specified by
    the administrator of this Tracker).

     
    • status: pending --> closed