Native brightness OSD

This commit is contained in:
Serge
2023-05-22 11:18:57 +02:00
parent 2a5c2e02ac
commit 5134aaca9d
9 changed files with 50 additions and 36 deletions

View File

@@ -26,7 +26,7 @@ namespace GHelper.AnimeMatrix
try
{
mat = new AnimeMatrixDevice();
mat.WakeUp();
Task.Run(mat.WakeUp);
matrixTimer = new System.Timers.Timer(100);
matrixTimer.Elapsed += MatrixTimer_Elapsed;
}
@@ -123,6 +123,11 @@ namespace GHelper.AnimeMatrix
}
public void Dispose()
{
StopMatrixAudio();
}
void StopMatrixAudio()
{
if (AudioDevice is not null)