update hound & lazy_static; release 0.8.2

This commit is contained in:
Austin Johnson 2019-06-06 00:49:49 -05:00
parent b82ca1e348
commit 78adc983f6
4 changed files with 6 additions and 5 deletions

View File

@ -1,5 +1,7 @@
# Unreleased # Unreleased
# Version 0.8.2 (2019-06-06)
- Fix resuming a paused stream on Windows (wasapi). - Fix resuming a paused stream on Windows (wasapi).
- Implement `default_output_format` for emscripten backend. - Implement `default_output_format` for emscripten backend.

View File

@ -9,10 +9,10 @@ license = "Apache-2.0"
keywords = ["audio", "sound"] keywords = ["audio", "sound"]
[dependencies] [dependencies]
lazy_static = "1.0" lazy_static = "1.3"
[dev-dependencies] [dev-dependencies]
hound = "3.0" hound = "3.4"
[target.'cfg(target_os = "windows")'.dependencies] [target.'cfg(target_os = "windows")'.dependencies]
winapi = { version = "0.3", features = ["audiosessiontypes", "audioclient", "coml2api", "combaseapi", "debug", "devpkey", "handleapi", "ksmedia", "mmdeviceapi", "objbase", "std", "synchapi", "winuser"] } winapi = { version = "0.3", features = ["audiosessiontypes", "audioclient", "coml2api", "combaseapi", "debug", "devpkey", "handleapi", "ksmedia", "mmdeviceapi", "objbase", "std", "synchapi", "winuser"] }

View File

@ -234,7 +234,7 @@ pub unsafe fn is_format_supported(
match (*waveformatex_ptr).wFormatTag { match (*waveformatex_ptr).wFormatTag {
mmreg::WAVE_FORMAT_PCM | mmreg::WAVE_FORMAT_IEEE_FLOAT => { mmreg::WAVE_FORMAT_PCM | mmreg::WAVE_FORMAT_IEEE_FLOAT => {
let mut closest_waveformatex = *waveformatex_ptr; let mut closest_waveformatex = *waveformatex_ptr;
let mut closest_waveformatex_ptr = &mut closest_waveformatex as *mut _; let closest_waveformatex_ptr = &mut closest_waveformatex as *mut _;
is_supported(waveformatex_ptr, closest_waveformatex_ptr) is_supported(waveformatex_ptr, closest_waveformatex_ptr)
}, },
mmreg::WAVE_FORMAT_EXTENSIBLE => { mmreg::WAVE_FORMAT_EXTENSIBLE => {
@ -243,7 +243,7 @@ pub unsafe fn is_format_supported(
let mut closest_waveformatextensible = *waveformatextensible_ptr; let mut closest_waveformatextensible = *waveformatextensible_ptr;
let closest_waveformatextensible_ptr = let closest_waveformatextensible_ptr =
&mut closest_waveformatextensible as *mut _; &mut closest_waveformatextensible as *mut _;
let mut closest_waveformatex_ptr = let closest_waveformatex_ptr =
closest_waveformatextensible_ptr as *mut mmreg::WAVEFORMATEX; closest_waveformatextensible_ptr as *mut mmreg::WAVEFORMATEX;
is_supported(waveformatex_ptr, closest_waveformatex_ptr) is_supported(waveformatex_ptr, closest_waveformatex_ptr)
}, },

View File

@ -12,7 +12,6 @@ use super::winapi::um::synchapi;
use super::winapi::um::winbase; use super::winapi::um::winbase;
use super::winapi::um::winnt; use super::winapi::um::winnt;
use std::marker::PhantomData;
use std::mem; use std::mem;
use std::ptr; use std::ptr;
use std::slice; use std::slice;