From 89635a3f71613979f07d5b1285088fb6e526f779 Mon Sep 17 00:00:00 2001 From: est31 Date: Mon, 27 Feb 2017 19:26:16 +0100 Subject: [PATCH] Update to lewton 0.5 --- Cargo.toml | 3 +-- src/decoder/vorbis.rs | 4 +--- src/lib.rs | 1 - 3 files changed, 2 insertions(+), 6 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index 4847ee4..aac044a 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -14,5 +14,4 @@ cpal = "0.4.0" futures = "0.1.1" hound = "1.0.0" lazy_static = "0.1.12" -lewton = "0.4" -ogg = "0.4" +lewton = "0.5" diff --git a/src/decoder/vorbis.rs b/src/decoder/vorbis.rs index 69253bf..be95a86 100644 --- a/src/decoder/vorbis.rs +++ b/src/decoder/vorbis.rs @@ -5,7 +5,6 @@ use std::vec; use Source; use lewton::inside_ogg::OggStreamReader; -use ogg; /// Decoder for an OGG file that contains Vorbis sound format. pub struct VorbisDecoder @@ -20,8 +19,7 @@ impl VorbisDecoder { /// Attempts to decode the data as ogg/vorbis. pub fn new(data: R) -> Result, ()> { - let packet_reader = ogg::PacketReader::new(data); - let mut stream_reader = match OggStreamReader::new(packet_reader) { + let mut stream_reader = match OggStreamReader::new(data) { Err(_) => return Err(()), Ok(r) => r, }; diff --git a/src/lib.rs b/src/lib.rs index f2ce632..13ae5c6 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -86,7 +86,6 @@ extern crate hound; #[macro_use] extern crate lazy_static; extern crate lewton; -extern crate ogg; pub use cpal::{Endpoint, get_endpoints_list, get_default_endpoint};