Tweaks
Tweaks
CC#
Created by Tweaks on 11/27/2024 in #help
Getting audio input/output with comport as Input
I’ve been bashing my head in for the last 2 days trying to get a problem working. I’m trying to get all sound devices connected to a COMport and then play the audio to them, but for some reason the devices you get from ManagementObjectSearcher("SELECT * FROM Win32_SoundDevice") is completely different from what I would get from NAudio or enumerator.EnumerateAudioEndPoints(DataFlow.Render, DeviceState.Active). Has anyone ever worked with anything remotely similar? Because I’ve been getting the Product ID and Vendor ID from the comport and I’m successfully finding it in Win32_SoundDevice, but I cannot for the life of me find anything that matches anything, the name isn’t even the same. It says USB 2.0 DEVICE instead of the actual name That it has in the windows environment
21 replies