Direct USB vinyl PCM2900 to speakers with pulseaudio pacat without delay
When I connect my USB Vinyl player to my pc, running kubuntu and using pulse audio, then it does not automatically direct the sound to speakers. Altho it detects the device and i can see audio bars moving.
The solution is pacat
- pacat is like cat, but for pulse audio devices.
- First pacat from the source (the -r is for recording)
- Then pipe the stream to the desire sink (the -p is for playback)
- latency and process is set so it would play it in real time, without these you will have a delay (vinyl starts playing, but speakers lag about 3 seconds behind)
#!/bin/sh pacat -r --latency-msec=1 --process-time-msec=1 -d alsa_input.usb-Burr-Brown_from_TI_USB_Audio_CODEC-00-default.analog-stereo | pacat -p --latency-msec=1 --process-time-msec=1 -d alsa_output.pci-0000_00_14.2.analog-surround-71