Update for rustc

This commit is contained in:
Pierre Krieger 2015-02-22 10:31:25 +01:00
parent ff63e283d5
commit 28bd368658
4 changed files with 20 additions and 17 deletions

View file

@ -19,7 +19,7 @@ impl Voice {
let name = ffi::CString::from_slice(b"default");
let mut playback_handle = mem::uninitialized();
check_errors(alsa::snd_pcm_open(&mut playback_handle, name.as_slice_with_nul().as_ptr(), alsa::SND_PCM_STREAM_PLAYBACK, alsa::SND_PCM_NONBLOCK)).unwrap();
check_errors(alsa::snd_pcm_open(&mut playback_handle, name.as_ptr(), alsa::SND_PCM_STREAM_PLAYBACK, alsa::SND_PCM_NONBLOCK)).unwrap();
let mut hw_params = mem::uninitialized();
check_errors(alsa::snd_pcm_hw_params_malloc(&mut hw_params)).unwrap();