Migrate to .NET 6
This commit is contained in:
parent
388b7110cf
commit
eeae99dc2a
8 changed files with 18 additions and 13 deletions
|
|
@ -19,7 +19,7 @@ namespace NetCoreAudio.Players
|
|||
[DllImport("winmm.dll")]
|
||||
public static extern int waveOutSetVolume(IntPtr hwo, uint dwVolume);
|
||||
|
||||
private Timer _playbackTimer;
|
||||
private System.Timers.Timer _playbackTimer;
|
||||
private Stopwatch _playStopwatch;
|
||||
|
||||
private string _fileName;
|
||||
|
|
@ -32,7 +32,7 @@ namespace NetCoreAudio.Players
|
|||
public Task Play(string fileName)
|
||||
{
|
||||
_fileName = $"\"{fileName}\"";
|
||||
_playbackTimer = new Timer
|
||||
_playbackTimer = new System.Timers.Timer
|
||||
{
|
||||
AutoReset = false
|
||||
};
|
||||
|
|
|
|||
Loading…
Reference in a new issue