Determine if windows is currently playing sound

后端 未结 3 1132
谎友^
谎友^ 2020-12-14 23:58

So I\'ve been pondering on this problem for a while and I can\'t figure out what the right way to go about this is. I want to determine if Windows is outputting sound at a c

3条回答
  •  心在旅途
    2020-12-15 00:37

    You could use AudioDeviceCmdlets module written by Chris Hunt

    Write-DefaultAudioDeviceValue -StreamValue looks like what you are looking for. Otherwise you can take a look at his source on how he pulling those values using the CoreAudioApi

提交回复
热议问题