3 ms·
> Low-latency and USB are incompatible things. When I have a network device connected via USB it is typical to have 1000+ ms pings as a worst case. You won't
by dusted 3y ago
> Low-latency and USB are incompatible things. When I have a network device connected via USB it is typical to have 1000+ ms pings as a worst case.
You won't achieve real-time latencies, but you'll get close enough for any practical purpose, and you'll anyway get better latency than the current solution of doing line-out -> line-in since those device will usually be present on the USB bus anyway + you have to wait for the DAC and ADC sampling.
> AFAIK if you are working with some signal after sound player it is going to be analog. Possible solution lies in implementing a custom sound driver for a tx device and probably a custom microphone driver for a rx device.
I'm not trying to do anything to the signal (I'm literally trying NOT to do anything to the signal), the way these audio devices work is usually by transporting PCM samples between the USB host and the USB device. Anything analog is due to the singnal either entering the audio device from an analog source, or leaving the device for an analog destination.
> Another possible solution is to get an HDMI input card for rx device, probably the HDMI interface will require having some video stream also instead of just sound.
That is an option, but HDMI audio input devices are less standard and would probably not just pop up in your OS as an audio source without additional software or driver support.
- eimrine 3y ago> transporting PCM samples between the USB host and the USB device. Seems like a great and simple idea but it might be not easy to negotiate between available PCM implementations on transmitting and receiving devices, I don't even know about what bus should be between two USBs and how to transmit silence to the receiving side if the transmitter device is unplugged, at least it requires to have a synchronized clock between two devices with fundamentally different ones. I expected this functional in Bluetooth, because Bluetooth has some established codec solution, but I have not seen a Bluetooth dongle which can transform a PC into Bluetooth-speaker.
- toast0 3y agoSo... I wonder if you can find a microcontroller with two 'device mode' USB ports. Then you could (through significant effort, presumably), program port A to appear as a USB audio sink and port B to appear as a USB audio source, buffer a few samples and hope.