I would say Scythe42 but he is busy so i don't really know maybe i could try but i can't for now (vacation) and debugging is tricky
I have created a branch based on your rework (https://github.com/MediaPortal/MediaPortal-1/tree/MP1-4091-Bass_Visualisations_Fix) hope @hwahrmann can look at it soon
I have change a little space (VS for MP should be set to 2 tab or something, i will try to find where is explain on wiki) but except that your patch is 1:1 with the branch
no problem ..I have change a little space
Hi Sebastii,I would say Scythe42 but he is busy so i don't really know maybe i could try but i can't for now (vacation) and debugging is tricky
Microsoft.Win32.SystemEvents.PowerModeChanged += new Microsoft.Win32.PowerModeChangedEventHandler(SystemEvents_PowerModeChanged);
void SystemEvents_PowerModeChanged(object sender, Microsoft.Win32.PowerModeChangedEventArgs e)
{
switch (e.Mode)
{
case Microsoft.Win32.PowerModes.Resume:
{
RestartVis();
}
break;
case Microsoft.Win32.PowerModes.Suspend:
{
StopVis();
}
break;
default:
Log.Debug("Unhandled PowerModeChanged event ...");
break;
}
}
I can't really test (not @home) and limited connection, but for wasapi it seems working (even cpu usage is high on my laptop lol)
Therefore, I ask myself the question again
Why does the mscorwks.dll as many CPU resources without the thread
do something?