Pulse Qt

Started by FalloutST, January 27, 2022, 12:40:31 PM

Previous topic - Next topic

FalloutST

So... Need help!
Introduction: I wrote streaming audio. As usual I took QAudioFormat QAudioInput and suddenly...
Problem: Having discarded all codecs, I read and transfer pcm s16le format between machines. A normal sound is obtained only when the frequency of 8000 Hz is set on a third-party machine and 16000 on the A64, and on the A64 I have to raise it twice, otherwise I just read the number of frames I need two times slower. Those. when setting the values to 8000, I read with a frequency of 4000 .... But it doesn't matter that I found working settings. And then suddenly ... The sound stopped opening at all. setting at startup PULSE_LOG=4 in the output I read the following:
Parsing configuration file '/etc/pulse/client.conf'
Parsing configuration file '/etc/pulse/client.conf.d/00-disable-autospawn.conf'
Using shared memfd memory pool with 1024 slots of size 64.0 KiB each, total size is 64.0 MiB, maximum usable slot size is 65472
Trying to connect to {74a162d8c4c1442ba0c48f38f6a7db12}unix:/run/user/1000/pulse/native...
parsing address failed: {74a162d8c4c1442ba0c48f38f6a7db12}unix:/run/user/1000/pulse/native
May be there is way to read data directly from driver????
------------------------------------------

FalloutST

I can not say how, but everything fine from now D:

FalloutST

systemctl enable pulseaudio && systemctl start pulseaudio