mirror of
https://github.com/aaru-dps/RedBookPlayer.git
synced 2025-12-16 19:24:41 +00:00
Fix ALException crash maybe
This commit is contained in:
@@ -89,7 +89,7 @@ namespace RedBookPlayer
|
||||
|
||||
this.Closing += (e, f) =>
|
||||
{
|
||||
PlayerView.Player.Shutdown();
|
||||
PlayerView.Player.Stop();
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
@@ -433,12 +433,6 @@ namespace RedBookPlayer
|
||||
{
|
||||
HasPreEmphasis = false;
|
||||
}
|
||||
|
||||
public void Shutdown()
|
||||
{
|
||||
soundOut?.Stop();
|
||||
source?.Stop();
|
||||
}
|
||||
}
|
||||
|
||||
public class PlayerSource : IWaveSource
|
||||
|
||||
@@ -51,7 +51,7 @@ namespace RedBookPlayer
|
||||
filter.Open(path);
|
||||
image.Open(filter);
|
||||
|
||||
Player?.Shutdown();
|
||||
Player?.Stop();
|
||||
Player = new Player();
|
||||
Player.Init(image, App.Settings.AutoPlay);
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user