Merge pull request #110 from tomaka/relaxed-c-void
Be more relaxed with c_void
This commit is contained in:
commit
3e776c8dd6
|
@ -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"
|
||||||
|
|
|
@ -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 {
|
||||||
|
|
Loading…
Reference in New Issue