From 48cf6ab8486f6c62f6370309505f054d2cc5b9cb Mon Sep 17 00:00:00 2001 From: walbourn_cp Date: Sat, 24 Jan 2015 23:22:21 -0800 Subject: [PATCH] DirectXTK for Audio: Stop followed by Play didn't correclty restart the voice --- Audio/SoundCommon.h | 1 + 1 file changed, 1 insertion(+) diff --git a/Audio/SoundCommon.h b/Audio/SoundCommon.h index d049cf507..03d50d37f 100644 --- a/Audio/SoundCommon.h +++ b/Audio/SoundCommon.h @@ -174,6 +174,7 @@ namespace DirectX { state = STOPPED; voice->Stop( 0 ); + voice->FlushSourceBuffers(); } else if ( looped ) {