From 5b5cf3ef14975e25e335f7cde97fdaab5c4d4b78 Mon Sep 17 00:00:00 2001 From: Jordan S Date: Sat, 8 Jun 2013 18:32:21 +0800 Subject: [PATCH] Stop the media player before disposing. This needs looking into as to why we need to do this in the first place. --- MonoGame.Framework/SDL2/Media/Song.cs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/MonoGame.Framework/SDL2/Media/Song.cs b/MonoGame.Framework/SDL2/Media/Song.cs index 0044c98fb9b..d0645e594cc 100644 --- a/MonoGame.Framework/SDL2/Media/Song.cs +++ b/MonoGame.Framework/SDL2/Media/Song.cs @@ -68,6 +68,9 @@ internal static void closeMixer() { if (initialized) { + // Stop the media player first + MediaPlayer.Stop(); + SDL_mixer.Mix_CloseAudio(); initialized = false; }