46 releases

0.13.0 Sep 14, 2024
0.11.4 Feb 7, 2023
0.11.3 Nov 28, 2022
0.10.0 Apr 10, 2022
0.1.2 Oct 26, 2016

#28 in Audio

Download history 1198/week @ 2024-07-24 1259/week @ 2024-07-31 1259/week @ 2024-08-07 1479/week @ 2024-08-14 1307/week @ 2024-08-21 2108/week @ 2024-08-28 2139/week @ 2024-09-04 1910/week @ 2024-09-11 3135/week @ 2024-09-18 4526/week @ 2024-09-25 4333/week @ 2024-10-02 4043/week @ 2024-10-09 4701/week @ 2024-10-16 6409/week @ 2024-10-23 7596/week @ 2024-10-30 8577/week @ 2024-11-06

28,233 downloads per month
Used in 112 crates (20 directly)

MIT license

265KB
5.5K SLoC

JACK (for Rust)

Rust bindings for JACK Audio Connection Kit.

Crates.io License
Docs.rs Test
📚 Documentation ❤️ Sponsor

Using JACK

The JACK server is usually started by the user or system. Clients can request that the JACK server is started on demand when they connect, but this can be disabled by creating a client with the NO_START_SERVER option or ClientOptions::default().

  • Linux and BSD users may install JACK1, JACK2 (preferred for low latency), or Pipewire JACK (preferred for ease of use) from their system package manager.
  • Windows users may install JACK from the official website or Chocolatey.
  • MacOS users may install JACK from the official website or Homebrew.

Refer to the docs.rs documentation for details about the API. For more general documentation, visit https://rustaudio.github.io/rust-jack.

Testing

Testing requires setting up a dummy server and running the tests using a single thread. rust-jack automatically configures cargo nextest to use a single thread.

# Set up a dummy server for tests. The script is included in this repository.
./dummy_jack_server.sh &
# Run tests
cargo nextest run

Note: If cargo nextest is not available, use RUST_TEST_THREADS=1 cargo test to run in single threaded mode.

Possible Issues

If the tests are failing, a possible gotcha may be timing issues.

  1. If using cargo test, try cargo nextest. The cargo nextest configuration is set up to run single threaded and to retry flaky tests up to 3 times.
  2. Increase the value used by sleep_on_test in client/common.rs.

Another case is that libjack may be broken on your setup. Try using libjack2 or pipewire-jack.

Dependencies

~220–510KB