diff --git a/CHANGELOG.md b/CHANGELOG.md index e2760ed..f2d5d8c 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,7 @@ # Unreleased + - Remove exclusive `&mut` borrow requirements in `Sink` & `SpatialSink` setters. +- Use `nalgebra` instead of `cgmath` for `Spatial` source. # Version 0.8.1 (2018-09-18) diff --git a/Cargo.toml b/Cargo.toml index 29c6662..6e72896 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -14,7 +14,7 @@ cpal = "0.8" hound = { version = "3.3.1", optional = true } lazy_static = "1.0.0" lewton = { version = "0.9", optional = true } -cgmath = "0.14" +nalgebra = "0.18" minimp3 = { version = "0.3.2", optional = true } [features] diff --git a/src/lib.rs b/src/lib.rs index ba4f095..118072b 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -83,12 +83,12 @@ #![cfg_attr(test, deny(missing_docs))] -extern crate cgmath; #[cfg(feature = "flac")] extern crate claxon; extern crate cpal; #[cfg(feature = "wav")] extern crate hound; +extern crate nalgebra; #[macro_use] extern crate lazy_static; #[cfg(feature = "vorbis")] diff --git a/src/source/spatial.rs b/src/source/spatial.rs index 0a09fa0..3faa700 100644 --- a/src/source/spatial.rs +++ b/src/source/spatial.rs @@ -1,4 +1,4 @@ -use cgmath::{InnerSpace, Point3}; +use nalgebra::Point3; use source::ChannelVolume; use std::fmt::Debug; use std::time::Duration;