diff --git a/Cargo.toml b/Cargo.toml index 9f6e95c..6fe0efb 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,7 +1,7 @@ [package] name = "cpal" -version = "0.2.10" +version = "0.2.11" authors = ["Pierre Krieger "] description = "Cross-platform audio playing library in pure Rust." repository = "https://github.com/tomaka/cpal" diff --git a/src/alsa/mod.rs b/src/alsa/mod.rs index 80ba236..fb8ab17 100644 --- a/src/alsa/mod.rs +++ b/src/alsa/mod.rs @@ -353,7 +353,7 @@ impl<'a, T> Buffer<'a, T> { unsafe { loop { let result = alsa::snd_pcm_writei(*channel, - self.buffer.as_ptr() as *const libc::c_void, + self.buffer.as_ptr() as *const _, to_write); if result == -32 {