proxy-audio-device icon indicating copy to clipboard operation
proxy-audio-device copied to clipboard

Proxy microphone

Open yyl-20020115 opened this issue 3 years ago • 1 comments

Hi Brian, How can I modify the code to proxy built-in microphone ? I mean capture microphone data and the other application can read the data from the device of this driver.

Best Regards, Yilin

yyl-20020115 avatar Feb 15 '22 01:02 yyl-20020115

That would be a significant modification, and it's not something I can easily describe quickly. You'd have to change the code of the function outputDeviceIOProc that runs in a separate thread so that it's reading data in from an input device, storing it in a ring buffer, then writing that same data out to the proxied input device. So basically what the device is currently doing, but in reverse. You'd also have to change the metadata about the device so that it reports itself as having two inputs rather than just two outputs.

Is there any reason you can't just read data directly from the built-in microphone? It ought to be possible for more than one app to read its input.

briankendall avatar Feb 15 '22 15:02 briankendall

He may want to record system sound

chenyangxx avatar Aug 13 '22 15:08 chenyangxx

What Yilin was describing was proxying an input device, not making a loopback device like Soundflower, BlackHole or Loopback. I'd recommend any of those if that's what you're looking to do. The proxy audio device is just about... [dramatic pause; drumroll] ...proxying an existing audio device.

briankendall avatar Aug 13 '22 20:08 briankendall

This is the automatic reply message from the QQ mailbox.Hello, your email has been received, I will reply to you as soon as possible. Good Time!  Alex

chenyangxx avatar Aug 30 '22 03:08 chenyangxx