Rust JACK

Build Status

Nice Rust bindings for JACK Audio Connection Kit

Documentation

Running

Running Tests

Testing is a little awkward to setup since it relies on a Jack server.

Setting Up Jack Dummy Server

Testing expects there to be an available Jack server running at a sample rate of 44.1kHz and a buffer size of 1024 samples.

bash $ jackd -r -ddummy -r44100 -p1024 & # Start the dummy jack server

Possible Issues

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

  1. Rust runs tests in parallel, it may be possible that the jack server is not keeping up. Set the environment variable RUST_TEST_THREADS to 1.
  2. Increase the value of DEFAULT_SLEEP_TIME in test.rs.

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

Running the tests

bash $ cargo test

"C" & Rust API differences

Progress

Sections based on the main page sections on the Jack API.

TODO

Other TODOS