Update for changes in rustc
This commit is contained in:
parent
7389ebf84b
commit
7adfdb4461
|
@ -10,11 +10,11 @@ license = "Apache-2.0"
|
|||
keywords = ["audio", "sound"]
|
||||
|
||||
[target.i686-pc-windows-gnu.dependencies.winapi]
|
||||
version = "^0.0.2"
|
||||
version = "^0.0.3"
|
||||
features = ["ole32"]
|
||||
|
||||
[target.x86_64-pc-windows-gnu.dependencies.winapi]
|
||||
version = "^0.0.2"
|
||||
version = "^0.0.3"
|
||||
features = ["ole32"]
|
||||
|
||||
[target.i686-unknown-linux-gnu.dependencies.alsa-sys]
|
||||
|
|
|
@ -7,7 +7,7 @@ fn main() {
|
|||
let mut channel = cpal::Voice::new();
|
||||
channel.play();
|
||||
|
||||
let mut decoder = vorbis::Decoder::new(BufReader::new(include_bin!("music.ogg")))
|
||||
let mut decoder = vorbis::Decoder::new(BufReader::new(include_bytes!("music.ogg")))
|
||||
.unwrap();
|
||||
|
||||
'main: for packet in decoder.packets() {
|
||||
|
|
|
@ -74,6 +74,9 @@ impl Voice {
|
|||
}
|
||||
}
|
||||
|
||||
unsafe impl Send for Voice {}
|
||||
unsafe impl Sync for Voice {}
|
||||
|
||||
impl Drop for Voice {
|
||||
fn drop(&mut self) {
|
||||
unsafe {
|
||||
|
|
|
@ -116,6 +116,9 @@ impl Voice {
|
|||
}
|
||||
}
|
||||
|
||||
unsafe impl Send for Voice {}
|
||||
unsafe impl Sync for Voice {}
|
||||
|
||||
impl Drop for Voice {
|
||||
fn drop(&mut self) {
|
||||
unsafe {
|
||||
|
|
Loading…
Reference in New Issue