mirror of
https://github.com/snltty/linker.git
synced 2025-12-24 12:38:04 +08:00
使用纹理缩放减少CPU使用,加速截屏时间
This commit is contained in:
@@ -113,9 +113,12 @@ namespace cmonitor.server.client.reports.volume
|
||||
AudioMeterInformation information;
|
||||
private void Init()
|
||||
{
|
||||
deviceEnumerator = new MMDeviceEnumerator();
|
||||
defaultDevice = deviceEnumerator.GetDefaultAudioEndpoint(DataFlow.Render, Role.Multimedia);
|
||||
information = defaultDevice.AudioMeterInformation;
|
||||
if (OperatingSystem.IsWindows())
|
||||
{
|
||||
deviceEnumerator = new MMDeviceEnumerator();
|
||||
defaultDevice = deviceEnumerator.GetDefaultAudioEndpoint(DataFlow.Render, Role.Multimedia);
|
||||
information = defaultDevice.AudioMeterInformation;
|
||||
}
|
||||
}
|
||||
|
||||
/*
|
||||
|
||||
Reference in New Issue
Block a user