Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,8 @@ jack-sys = { version = "0.5", optional = true }
libc = { version = "0.2.21", optional = true }

[target.'cfg(target_os = "linux")'.dependencies]
alsa = ">=0.9.0, <0.11" # the changes between 0.9 and 0.10 do not bother us
# Try to be compatible with a wide range of alsa versions
alsa = ">=0.9.0, <0.12"
libc = "0.2.21"

[target.'cfg(target_os = "ios")'.dependencies]
Expand Down
2 changes: 1 addition & 1 deletion src/backend/webmidi/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ impl Static {
request: None,
ever_requested: false,

on_ok: Closure::wrap(Box::new(|access| {
on_ok: Closure::wrap(Box::new(|access: JsValue| {
STATIC.with(|s| {
let mut s = s.borrow_mut();
let access: MidiAccess = access.dyn_into().unwrap();
Expand Down
2 changes: 1 addition & 1 deletion src/backend/winmm/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -251,7 +251,7 @@ impl MidiInput {
midiInOpen(
in_handle.as_mut_ptr(),
port_number as UINT,
Some(handler::handle_input::<T> as DWORD_PTR),
Some(handler::handle_input::<T> as *const () as DWORD_PTR),
Some(handler_data_ptr as DWORD_PTR),
CALLBACK_FUNCTION,
)
Expand Down
Loading