Perhaps it's something else, since the clocks on both devices are synchronized with Internet time. Well, if you think that the logic is correct, you can close an issue.
If you run the command on the server (Ubuntu 22.04 LTS):
ncat -lk -p 48000 -c "pacat -vv -r -d `pactl info | grep -oP 'Default Sink: \K.+'` --rate=48000 --channels=2 --format=s16le"
and an application on the Android phone to play the audio stream, for example SimpleProtocolPlayer, then after a few hours, an error occurs on the server:
Assertion 'size < (1024*1024*96)' failed at pulse/xmalloc.c:83, function pa_xrealloc()
I suggest a fix: !770
I prefer this option:
ncat -lk -p 48000 -c "~/git/pulseaudio/build/src/utils/pacat -vv -r -d alsa_output.pci-0000_00_1b.0.pro-output-0 --rate=48000 --channels=2 --format=s16le"
"pacat" will only run when a client connects. When the client disconnects, the pipe will close and the "pacat" will terminate.
Used this method, but ran into an error:
"Assertion 'size < (1024*1024*96)' failed at pulse/xmalloc.c:83, function pa_xrealloc()"
.
Here's the fix if anyone needs it right now:
Now you can do like this:
~/git/pulseaudio/build/src/utils/pacat -r -d alsa_output.pci-0000_00_1b.0.pro-output-0 —rate=48000 —channels=2 —format=s16le | nc -lk -p 48000
- and nothing will fall off! ;)
Now you can do like this:
~/git/pulseaudio/build/src/utils/pacat -r -d alsa_output.pci-0000_00_1b.0.pro-output-0 —rate=11025 —channels=1 —format=s16le | nc -lk -p 11025
- and nothing will fall off! ;)
Now you can do like this:
~/git/pulseaudio/build/src/utils/pacat -r -d alsa_output.pci-0000_00_1b.0.pro-output-0 —rate=11025 —channels=1 —format=s16le | nc -lk -p 11025
- and nothing will fall off! ;)
Илья (085b2ba0) at 22 Jan 21:20
fixed "Assertion 'size < (1024102496)' failed at pulse/xmalloc.c:...