Update for rustc
This commit is contained in:
parent
b4b75f526a
commit
f00bb5a2b8
|
@ -22,7 +22,7 @@ pub type ChannelsCount = u16;
|
||||||
pub struct Buffer<'a>(cpal_impl::Buffer<'a>);
|
pub struct Buffer<'a>(cpal_impl::Buffer<'a>);
|
||||||
|
|
||||||
/// Format that each sample has.
|
/// Format that each sample has.
|
||||||
#[deriving(Clone, Show, PartialEq, Eq)]
|
#[deriving(Clone, Copy, Show, PartialEq, Eq)]
|
||||||
pub enum SampleFormat {
|
pub enum SampleFormat {
|
||||||
/// The value 0 corresponds to 0.
|
/// The value 0 corresponds to 0.
|
||||||
I16,
|
I16,
|
||||||
|
|
|
@ -191,7 +191,7 @@ fn init() -> Result<Channel, String> {
|
||||||
None => &format_attempt,
|
None => &format_attempt,
|
||||||
};
|
};
|
||||||
|
|
||||||
let format_copy = *format;
|
let format_copy = ptr::read(format);
|
||||||
|
|
||||||
let f = audio_client.lpVtbl.as_ref().unwrap().Initialize;
|
let f = audio_client.lpVtbl.as_ref().unwrap().Initialize;
|
||||||
let hresult = f(audio_client, winapi::AUDCLNT_SHAREMODE::AUDCLNT_SHAREMODE_SHARED,
|
let hresult = f(audio_client, winapi::AUDCLNT_SHAREMODE::AUDCLNT_SHAREMODE_SHARED,
|
||||||
|
|
Loading…
Reference in New Issue