Fix ALException crash maybe

This commit is contained in:
deagahelio
2021-04-06 18:28:25 -03:00
parent c8c8bfab66
commit 2c2d944fba
3 changed files with 2 additions and 8 deletions

View File

@@ -89,7 +89,7 @@ namespace RedBookPlayer
this.Closing += (e, f) => this.Closing += (e, f) =>
{ {
PlayerView.Player.Shutdown(); PlayerView.Player.Stop();
}; };
} }
} }

View File

@@ -433,12 +433,6 @@ namespace RedBookPlayer
{ {
HasPreEmphasis = false; HasPreEmphasis = false;
} }
public void Shutdown()
{
soundOut?.Stop();
source?.Stop();
}
} }
public class PlayerSource : IWaveSource public class PlayerSource : IWaveSource

View File

@@ -51,7 +51,7 @@ namespace RedBookPlayer
filter.Open(path); filter.Open(path);
image.Open(filter); image.Open(filter);
Player?.Shutdown(); Player?.Stop();
Player = new Player(); Player = new Player();
Player.Init(image, App.Settings.AutoPlay); Player.Init(image, App.Settings.AutoPlay);
}); });