Coder Social home page Coder Social logo

rust-jack's Introduction

JACK

https://img.shields.io/badge/License-MIT-yellow.svg
https://github.com/RustAudio/rust-jack/workflows/Rust/badge.svg
https://img.shields.io/crates/v/jack.svg
https://docs.rs/jack/badge.svg

Overview

Rust bindings for the [JACK Audio Connection Kit](https://jackaudio.org). 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.

  • Linux and BSD users may install JACK1, JACK2, or Pipewire JACK from their system package

manager.

  • Windows users may install JACK from the

[official website](http://jackaudio.org/downloads/) or [Chocolatey](https://community.chocolatey.org/packages/jack).

[Homebrew](https://formulae.brew.sh/formula/jack).

[:heart: Sponsor](https://github.com/sponsors/wmedrano)

Refer to the [documentation](https://docs.rs/jack/) 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.

rust-jack's People

Contributors

wmedrano avatar cramertj avatar mlang avatar x37v avatar yuval-k avatar be-ing avatar est31 avatar benjamin-l avatar rex4539 avatar windfisch avatar ischeinkman avatar javyre avatar kasbah avatar kneitinger avatar mousterian avatar niclashoyer avatar peterstuart avatar derekdreery avatar robbert-vdh avatar ollpu avatar igbc avatar e2-71828 avatar piegamesde avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.