commit
68a1952f4d
10
Cargo.toml
10
Cargo.toml
|
@ -1,7 +1,7 @@
|
||||||
[package]
|
[package]
|
||||||
|
|
||||||
name = "cpal"
|
name = "cpal"
|
||||||
version = "0.1.0"
|
version = "0.1.1"
|
||||||
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"
|
||||||
|
@ -13,19 +13,19 @@ keywords = ["audio", "sound"]
|
||||||
libc = "*"
|
libc = "*"
|
||||||
|
|
||||||
[target.i686-pc-windows-gnu.dependencies]
|
[target.i686-pc-windows-gnu.dependencies]
|
||||||
winapi = "0.1.19"
|
winapi = "0.2.1"
|
||||||
ole32-sys = "0.1"
|
ole32-sys = "0.1"
|
||||||
|
|
||||||
[target.x86_64-pc-windows-gnu.dependencies]
|
[target.x86_64-pc-windows-gnu.dependencies]
|
||||||
winapi = "0.1.19"
|
winapi = "0.2.1"
|
||||||
ole32-sys = "0.1"
|
ole32-sys = "0.1"
|
||||||
|
|
||||||
[target.i686-pc-windows-msvc.dependencies]
|
[target.i686-pc-windows-msvc.dependencies]
|
||||||
winapi = "0.1.19"
|
winapi = "0.2.1"
|
||||||
ole32-sys = "0.1"
|
ole32-sys = "0.1"
|
||||||
|
|
||||||
[target.x86_64-pc-windows-msvc.dependencies]
|
[target.x86_64-pc-windows-msvc.dependencies]
|
||||||
winapi = "0.1.19"
|
winapi = "0.2.1"
|
||||||
ole32-sys = "0.1"
|
ole32-sys = "0.1"
|
||||||
|
|
||||||
[target.i686-unknown-linux-gnu.dependencies.alsa-sys]
|
[target.i686-unknown-linux-gnu.dependencies.alsa-sys]
|
||||||
|
|
|
@ -209,7 +209,7 @@ fn init() -> Result<Voice, String> {
|
||||||
0, 10000000, 0, format, ptr::null());
|
0, 10000000, 0, format, ptr::null());
|
||||||
|
|
||||||
if !format_ptr.is_null() {
|
if !format_ptr.is_null() {
|
||||||
ole32::CoTaskMemFree(format_ptr as *mut libc::c_void);
|
ole32::CoTaskMemFree(format_ptr as *mut _);
|
||||||
}
|
}
|
||||||
|
|
||||||
try!(check_result(hresult));
|
try!(check_result(hresult));
|
||||||
|
|
Loading…
Reference in New Issue