瀏覽代碼

Move hound crate to map::wav module and add cfg decorator.

mitchmindtree 8 年之前
父節點
當前提交
66ba74b54e
共有 2 個文件被更改,包括 3 次插入2 次删除
  1. 0 1
      src/lib.rs
  2. 3 1
      src/map.rs

+ 0 - 1
src/lib.rs

@@ -1,4 +1,3 @@
-extern crate hound;
 extern crate instrument;
 extern crate pitch_calc as pitch;
 extern crate sample;

+ 3 - 1
src/map.rs

@@ -151,8 +151,10 @@ impl<F> Map<F>
 }
 
 
+#[cfg(feature="wav")]
 mod wav {
-    use hound;
+    extern crate hound;
+
     use map;
     use pitch;
     use sample;