Update for rustc

This commit is contained in:
Pierre Krieger 2014-12-15 10:16:18 +01:00
parent b4b75f526a
commit f00bb5a2b8
2 changed files with 2 additions and 2 deletions

View File

@ -22,7 +22,7 @@ pub type ChannelsCount = u16;
pub struct Buffer<'a>(cpal_impl::Buffer<'a>);
/// Format that each sample has.
#[deriving(Clone, Show, PartialEq, Eq)]
#[deriving(Clone, Copy, Show, PartialEq, Eq)]
pub enum SampleFormat {
/// The value 0 corresponds to 0.
I16,

View File

@ -191,7 +191,7 @@ fn init() -> Result<Channel, String> {
None => &format_attempt,
};
let format_copy = *format;
let format_copy = ptr::read(format);
let f = audio_client.lpVtbl.as_ref().unwrap().Initialize;
let hresult = f(audio_client, winapi::AUDCLNT_SHAREMODE::AUDCLNT_SHAREMODE_SHARED,