#real-time #midi #music

jack

Real time audio and midi with JACK

42 releases

0.11.4 Feb 7, 2023
0.11.3 Nov 28, 2022
0.11.1 Oct 31, 2022
0.10.0 Apr 10, 2022
0.1.2 Oct 26, 2016

#22 in Audio

Download history 1198/week @ 2023-11-20 1072/week @ 2023-11-27 949/week @ 2023-12-04 887/week @ 2023-12-11 1086/week @ 2023-12-18 808/week @ 2023-12-25 716/week @ 2024-01-01 1041/week @ 2024-01-08 1088/week @ 2024-01-15 983/week @ 2024-01-22 850/week @ 2024-01-29 1319/week @ 2024-02-05 1331/week @ 2024-02-12 1281/week @ 2024-02-19 1525/week @ 2024-02-26 1304/week @ 2024-03-04

5,622 downloads per month
Used in 101 crates (19 directly)

MIT license

285KB
6K SLoC

Rust JACK

License: MIT Build Status

crates.io docs.rs

Rust bindings for the JACK Audio Connection Kit. These bindings work on every operating system that JACK does.

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 the user and is the recommended configuration.

❤️ Sponsor

Refer to the documentation for details about the API, building, and packaging. Also take a look at the examples directory for usage.

Testing

Testing requires setting up a dummy server and running the tests using a single thread.

# Set up a dummy server for tests. The script is included in this repository.
./dummy_jack_server.sh &
# Run tests with limited concurrency.
RUST_TEST_THREADS=1 cargo test

Note: We use a single thread for tests since too many client instantiations in short periods of time cause the JACK server to become flaky.

Possible Issues

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

  1. Increase the value used by sleep_on_test in client/common.rs.

Another case is that libjack may be broken on your setup. Try switching between libjack and libjack2 (they have the same API and libjack2 isn't necessarily newer than libjack), or using a different version.

Dependencies

~200–490KB