File tree Expand file tree Collapse file tree 2 files changed +7
-3
lines changed Expand file tree Collapse file tree 2 files changed +7
-3
lines changed Original file line number Diff line number Diff line change @@ -118,9 +118,11 @@ type pwNodeProps struct {
118118
119119// Constants for MediaClass.
120120const (
121- pwAudioDevice string = "Audio/Device"
122- pwAudioSink string = "Audio/Sink"
123- pwStreamOutputAudio string = "Stream/Output/Audio"
121+ pwAudioDevice string = "Audio/Device"
122+ pwAudioSink string = "Audio/Sink"
123+ pwAudioSource string = "Audio/Source"
124+ pwAudioSourceVirtual string = "Audio/Source/Virtual"
125+ pwStreamOutputAudio string = "Stream/Output/Audio"
124126)
125127
126128type pwPortDirection string
Original file line number Diff line number Diff line change @@ -42,6 +42,8 @@ func (p Backend) Devices() ([]input.Device, error) {
4242 pwSinks := pwObjs .Filter (func (o pwObject ) bool {
4343 return o .Type == pwInterfaceNode &&
4444 o .Info .Props .MediaClass == pwAudioSink ||
45+ o .Info .Props .MediaClass == pwAudioSource ||
46+ o .Info .Props .MediaClass == pwAudioSourceVirtual ||
4547 o .Info .Props .MediaClass == pwStreamOutputAudio
4648 })
4749
You can’t perform that action at this time.
0 commit comments