Be more relaxed with c_void
This commit is contained in:
parent
b20a76aab8
commit
752676c818
2 changed files with 2 additions and 2 deletions
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue