Be more relaxed with c_void

This commit is contained in:
Pierre Krieger 2016-04-25 13:33:12 +02:00
parent b20a76aab8
commit 752676c818
2 changed files with 2 additions and 2 deletions

View File

@ -1,7 +1,7 @@
[package] [package]
name = "cpal" name = "cpal"
version = "0.2.10" version = "0.2.11"
authors = ["Pierre Krieger <pierre.krieger1708@gmail.com>"] authors = ["Pierre Krieger <pierre.krieger1708@gmail.com>"]
description = "Cross-platform audio playing library in pure Rust." description = "Cross-platform audio playing library in pure Rust."
repository = "https://github.com/tomaka/cpal" repository = "https://github.com/tomaka/cpal"

View File

@ -353,7 +353,7 @@ impl<'a, T> Buffer<'a, T> {
unsafe { unsafe {
loop { loop {
let result = alsa::snd_pcm_writei(*channel, let result = alsa::snd_pcm_writei(*channel,
self.buffer.as_ptr() as *const libc::c_void, self.buffer.as_ptr() as *const _,
to_write); to_write);
if result == -32 { if result == -32 {