Skip to content

Commit

Permalink
Bump from 0.3.0 to 0.4.0
Browse files Browse the repository at this point in the history
* Expose `Client` to callbacks.

* Move some client functionality to process scope.

* Bump lazy_static from 0.2.1 to 0.2.2.

* More tests, cleanup, and docs.
  • Loading branch information
wmedrano committed Jan 26, 2017
1 parent 70ad50f commit 71da2f5
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "jack"
version = "0.3.0"
version = "0.4.0"
authors = ["Will S. Medrano <will.s.medrano@gmail.com>"]
description = "Real time audio and midi using safe JACK bindings."
documentation = "https://wmedrano.github.io/rust-jack/jack/index.html"
Expand All @@ -12,5 +12,5 @@ keywords = ["jack", "realtime", "audio", "midi"]
[dependencies]
bitflags = "0.7.0"
jack-sys = "0.1.4"
lazy_static = "0.2.1"
lazy_static = "0.2.2"
libc = "0.2"
4 changes: 2 additions & 2 deletions src/port/audio.rs
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ impl<'a> AudioOutPort<'a> {
/// that registered the port. Panics if the port does not belong
/// to the client that created the process.
pub fn new(port: &'a mut Port<AudioOutSpec>, ps: &'a ProcessScope) -> Self {
unsafe { assert_eq!(port.client_ptr(), ps.client_ptr()) };
assert_eq!(port.client_ptr(), ps.client_ptr());
let buff = unsafe {
slice::from_raw_parts_mut(port.buffer(ps.n_frames()) as *mut f32,
ps.n_frames() as usize)
Expand Down Expand Up @@ -114,7 +114,7 @@ impl<'a> AudioInPort<'a> {
/// that registered the port. Panics if the port does not belong
/// to the client that created the process.
pub fn new(port: &'a Port<AudioInSpec>, ps: &'a ProcessScope) -> Self {
unsafe { assert_eq!(port.client_ptr(), ps.client_ptr()) };
assert_eq!(port.client_ptr(), ps.client_ptr());
let buff = unsafe {
slice::from_raw_parts(port.buffer(ps.n_frames()) as *const f32,
ps.n_frames() as usize)
Expand Down
4 changes: 2 additions & 2 deletions src/port/midi.rs
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ impl<'a> MidiInPort<'a> {
/// that registered the port. Panics if the port does not belong
/// to the client that created the process.
pub fn new(port: &'a Port<MidiInSpec>, ps: &'a ProcessScope) -> Self {
unsafe { assert_eq!(port.client_ptr(), ps.client_ptr()) };
assert_eq!(port.client_ptr(), ps.client_ptr());
let buffer_ptr = unsafe { port.buffer(ps.n_frames()) };
MidiInPort {
_port: port,
Expand Down Expand Up @@ -134,7 +134,7 @@ impl<'a> MidiOutPort<'a> {
///
/// The data in the port is cleared.
pub fn new(port: &'a mut Port<MidiOutSpec>, ps: &'a ProcessScope) -> Self {
unsafe { assert_eq!(port.client_ptr(), ps.client_ptr()) };
assert_eq!(port.client_ptr(), ps.client_ptr());
let buffer_ptr = unsafe { port.buffer(ps.n_frames()) };
unsafe { j::jack_midi_clear_buffer(buffer_ptr) };
MidiOutPort {
Expand Down

0 comments on commit 71da2f5

Please sign in to comment.