From 95caa88cfa1c3f00f4b93acbc57f89b1120046ca Mon Sep 17 00:00:00 2001 From: Artem Date: Tue, 10 Jul 2018 16:43:52 +0200 Subject: [PATCH] Fix the PauseStream handler to flip the `playing` bit. (#233) * Fix the PauseStream handler to flip the `playing` bit. * Changelog entry on the wasapi stream resuming fix. * Moved the changelog entry to the Unreleased. --- CHANGELOG.md | 1 + src/wasapi/stream.rs | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 43950d1..2899389 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,6 @@ # Unreleased +- Fix resuming a paused stream on Windows (wasapi). - Implement `default_output_format` for emscripten backend. # Version 0.8.1 (2018-03-18) diff --git a/src/wasapi/stream.rs b/src/wasapi/stream.rs index ff8ef74..1b30c97 100644 --- a/src/wasapi/stream.rs +++ b/src/wasapi/stream.rs @@ -462,7 +462,7 @@ impl EventLoop { if v.playing { let hresult = (*v.audio_client).Stop(); check_result(hresult).unwrap(); - v.playing = true; + v.playing = false; } } },