LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware > Linux - Embedded & Single-board computer
User Name
Password
Linux - Embedded & Single-board computer This forum is for the discussion of Linux on both embedded devices and single-board computers (such as the Raspberry Pi, BeagleBoard and PandaBoard). Discussions involving Arduino, plug computers and other micro-controller like devices are also welcome.

Notices


Reply
  Search this Thread
Old 10-28-2021, 07:41 AM   #1
bennypr0fane
Member
 
Registered: Jan 2012
Location: Central Europe
Distribution: Manjaro, Kubuntu
Posts: 171

Rep: Reputation: Disabled
Streaming my Linux sound to a Raspberry Pi over the network - Rpi as audio sink


I've found several topics scattered across the net covering this (also one in here, but unresolved) - but instructions in the tutorials diverge from what I find on my RPi OS, and mostly they're several years old, so I dare open a new thread.
Setup: desktop pc is Manjaro Linux, the Raspberry Pi has Raspberry Pi OS Stretch. I reach it using RealVNC Viewer from my desktop. Both are connected to the same router via cable. I have my stereo hooked up to the RPi at the analog audio 3,5mm plug, and I'd like it to play all sound from my desktop.

I've tried to make it happen using Pulseaudio tools:
1. Installed Paprefs on both machines.
2. Settings on Manjaro:
https://paste.pics/536e2061dc0fd10f587d71b7e1f2c35d
https://paste.pics/a5e906d75a2e3273af9e8851a0994df3

3. Settings on RPiOS:
https://paste.pics/ee29173c4f73aefc0098905250b9cc8e
https://paste.pics/b412d20f9e4b4cdd9e09caba88ba7f0e
https://paste.pics/b055ae738cd50318aea80b40b1a5f70a
https://paste.pics/7b72f16a77a0448ee3c266fa359e047e

4. RPi appears as a sound sink in Manjaro, but two duplicates . Selecting either does not make the sound come out the stereo.

EDIT: What's a good CLI command for diagnosing audio devices, network audio? Screenshots are a bit of a pain...
The pulseaudio CLI has a lot of options, this is my best guess:

On Manjaro:
Code:
[ben@catull-mnj ~]$ pulseaudio --dump-conf
### Aus Konfigurationsdatei wird gelesen: /etc/pulse/daemon.conf ###
daemonize = no
fail = yes
high-priority = yes
nice-level = -11
realtime-scheduling = yes
realtime-priority = 5
allow-module-loading = yes
allow-exit = yes
use-pid-file = yes
system-instance = no
local-server-type = user
cpu-limit = no
enable-shm = yes
flat-volumes = no
rescue-streams = yes
lock-memory = no
exit-idle-time = 20
scache-idle-time = 20
dl-search-path = /usr/lib/pulse-15.0/modules
default-script-file = /etc/pulse/default.pa
load-default-script-file = yes
log-target = 
log-level = notice
resample-method = auto
avoid-resampling = no
enable-remixing = yes
remixing-use-all-sink-channels = yes
remixing-produce-lfe = no
remixing-consume-lfe = no
lfe-crossover-freq = 0
default-sample-format = s16le
default-sample-rate = 44100
alternate-sample-rate = 48000
default-sample-channels = 2
default-channel-map = front-left,front-right
default-fragments = 4
default-fragment-size-msec = 25
enable-deferred-volume = yes
deferred-volume-safety-margin-usec = 8000
deferred-volume-extra-delay-usec = 0
shm-size-bytes = 0
log-meta = no
log-time = no
log-backtrace = 0
rlimit-fsize = -1
rlimit-data = -1
rlimit-stack = -1
rlimit-core = -1
rlimit-rss = -1
rlimit-as = -1
rlimit-nproc = -1
rlimit-nofile = 256
rlimit-memlock = -1
rlimit-locks = -1
rlimit-sigpending = -1
rlimit-msgqueue = -1
rlimit-nice = 31
rlimit-rtprio = 9
rlimit-rttime = 200000
On RPi:
Code:
pi@raspberrypi:~ $ pulseaudio --dump-conf
### Aus Konfigurationsdatei wird gelesen: /etc/pulse/daemon.conf ###
daemonize = no
fail = yes
high-priority = yes
nice-level = -11
realtime-scheduling = yes
realtime-priority = 5
allow-module-loading = yes
allow-exit = yes
use-pid-file = yes
system-instance = no
local-server-type = user
cpu-limit = no
enable-shm = yes
flat-volumes = yes
lock-memory = no
exit-idle-time = 20
scache-idle-time = 20
dl-search-path = /usr/lib/pulse-12.2/modules
default-script-file = /etc/pulse/default.pa
load-default-script-file = yes
log-target = 
log-level = notice
resample-method = auto
avoid-resampling = yes
enable-remixing = yes
remixing-use-all-sink-channels = yes
enable-lfe-remixing = no
lfe-crossover-freq = 0
default-sample-format = s16le
default-sample-rate = 44100
alternate-sample-rate = 48000
default-sample-channels = 2
default-channel-map = front-left,front-right
default-fragments = 4
default-fragment-size-msec = 15
enable-deferred-volume = yes
deferred-volume-safety-margin-usec = 8000
deferred-volume-extra-delay-usec = 0
shm-size-bytes = 0
log-meta = no
log-time = no
log-backtrace = 0
rlimit-fsize = -1
rlimit-data = -1
rlimit-stack = -1
rlimit-core = -1
rlimit-rss = -1
rlimit-as = -1
rlimit-nproc = -1
rlimit-nofile = 256
rlimit-memlock = -1
rlimit-locks = -1
rlimit-sigpending = -1
rlimit-msgqueue = -1
rlimit-nice = 31
rlimit-rtprio = 9
rlimit-rttime = 200000


You guessed it, I'm confused about a couple things:
- The server is Manjaro, the client is RPiOS, right?
- RTP: do I even need it? If yes, how are the correct settings?
- Correct settings for Paprefs on each machine. I've played around a good two hours, no luck. I've verified on RPi that it can output its own sound to speakers alright. It just won't pass on the ones from Manjaro.

Here's a thread on Stack Exchange that provides instructions for my use case, but for example /etc/default/pulseaudio does not exist on my RPiOS, so I'm unsure which are the correct config files on my system. These things do change around a lot as versions progress.
If anyone here is up to speed, all help is greatly appreciated!

EDIT: more info on the RPi situation: The playback stream going on in Manjaro (Spotify) is visible in RPi Pavucontrol (the volume bar is also moving)

https://paste.pics/3a6f4b9f21de80f425f3ec9e8846c0dd
https://paste.pics/5fb23e13c9a773ed1443e4ce3c219949
https://paste.pics/c6ca9e4a578c35435b8514d2297b8f30

but it's not in the systray applet:
https://paste.pics/b968dad3d20dcc59524e451ce75571d4

Last edited by bennypr0fane; 10-28-2021 at 01:21 PM. Reason: add question
 
Old 10-28-2021, 10:30 PM   #2
aus9
LQ 5k Club
 
Registered: Oct 2003
Location: Western Australia
Distribution: Icewm
Posts: 5,842

Rep: Reputation: Disabled
Until you get a better reply...client RPi means this is your end user and the source is the server. Eg you are a bank customer...end user and you login to bank which is the server.

Did you expect something different for pulse showing suspended on your pi....check your third link


Better still run

Code:
pulseaudio -vvv

Last edited by aus9; 10-28-2021 at 10:31 PM.
 
Old 10-29-2021, 12:53 PM   #3
bennypr0fane
Member
 
Registered: Jan 2012
Location: Central Europe
Distribution: Manjaro, Kubuntu
Posts: 171

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by aus9 View Post
Until you get a better reply...client RPi means this is your end user and the source is the server. Eg you are a bank customer...end user and you login to bank which is the server.

Did you expect something different for pulse showing suspended on your pi....check your third link

Code:
pulseaudio -vvv
Voila:
Code:
pi@raspberrypi:~ $ pulseaudio -vvv
I: [pulseaudio] main.c: setrlimit(RLIMIT_NICE, (31, 31)) failed: Die Operation ist nicht erlaubt
D: [pulseaudio] core-rtclock.c: Timer slack is set to 50 us.
D: [pulseaudio] core-util.c: RealtimeKit worked.
I: [pulseaudio] core-util.c: Successfully gained nice level -11.
I: [pulseaudio] main.c: This is PulseAudio 12.2
D: [pulseaudio] main.c: Compilation host: arm-unknown-linux-gnueabihf
D: [pulseaudio] main.c: Compilation CFLAGS: -g -O2 -fdebug-prefix-map=/home/pi/new/pulseaudio-12.2=. -fstack-protector-strong -Wformat -Werror=format-security -Wall -W -Wextra -pipe -Wno-long-long -Wno-overlength-strings -Wunsafe-loop-optimizations -Wundef -Wformat=2 -Wlogical-op -Wsign-compare -Wformat-security -Wmissing-include-dirs -Wformat-nonliteral -Wpointer-arith -Winit-self -Wdeclaration-after-statement -Wfloat-equal -Wmissing-prototypes -Wredundant-decls -Wmissing-declarations -Wmissing-noreturn -Wshadow -Wendif-labels -Wcast-align -Wstrict-aliasing -Wwrite-strings -Wno-unused-parameter -fno-common -fdiagnostics-show-option -fdiagnostics-color=auto
D: [pulseaudio] main.c: Running on host: Linux armv7l 5.10.63-v7l+ #1459 SMP Wed Oct 6 16:41:57 BST 2021
D: [pulseaudio] main.c: Found 4 CPUs.
I: [pulseaudio] main.c: Page size is 4096 bytes
D: [pulseaudio] main.c: Compiled with Valgrind support: yes
D: [pulseaudio] main.c: Running in valgrind mode: no
D: [pulseaudio] main.c: Running in VM: no
D: [pulseaudio] main.c: Optimized build: yes
D: [pulseaudio] main.c: FASTPATH defined, only fast path asserts disabled.
I: [pulseaudio] main.c: Machine ID is cbf4c75fd4c24dc0a7b80fed787762b0.
I: [pulseaudio] main.c: Session ID is 2.
I: [pulseaudio] main.c: Using runtime directory /run/user/1000/pulse.
I: [pulseaudio] main.c: Using state directory /home/pi/.config/pulse.
I: [pulseaudio] main.c: Using modules directory /usr/lib/pulse-12.2/modules.
I: [pulseaudio] main.c: Running in system mode: no
E: [pulseaudio] pid.c: Daemon already running.
E: [pulseaudio] main.c: pa_pid_file_create() fehlgeschlagen.
I was hoping to find something that gives me all the info on that screenshot as text in my terminal, but this doesn't seem to be it
 
Old 10-31-2021, 06:58 AM   #4
aus9
LQ 5k Club
 
Registered: Oct 2003
Location: Western Australia
Distribution: Icewm
Posts: 5,842

Rep: Reputation: Disabled
you appear to have a mismatch of configs....lets see if you agree?

your last post shows line=Running in system mode: no
ditto " Using state directory /home/pi/.config/pulse

2) when you run
Code:
man 5 pulse-client.conf
you will see configs allowed are
~/.config/pulse/client.conf
~/.config/pulse/client.conf.d/*.conf
/etc/pulse/client.conf
/etc/pulse/client.conf.d/*.conf

so have you copied client.conf from etc/pulse to your home .config/pulse?

3) in your top post....it does not appear so....it appears you have used the /etc/pulse dir?

############################

so to follow your link guide....I suggest you use root powers to edit the system files
and....run it as daemon and add those config lines to /etc/pulse/system.pa
Quote:
load-module module-native-protocol-tcp auth-ip-acl=127.0.0.1;192.168.1.0/24
load-module module-zeroconf-publish
subject to your router ip...it may start 10.something not 192 something etc

3) I do not have /etc/default/pulse ....this appears to be distro specific

but the intent of that file....it to auto start the service at boot.

I assume you are running systemd on your RPi?

show the results for
Code:
sudo systemctl list-unit-files | grep enabled | grep pulse
if you get no hits delete grep enabled and see if you get any pulse hits.
we need pulse starting

Last edited by aus9; 10-31-2021 at 06:59 AM.
 
Old 10-31-2021, 07:24 AM   #5
bennypr0fane
Member
 
Registered: Jan 2012
Location: Central Europe
Distribution: Manjaro, Kubuntu
Posts: 171

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by aus9 View Post
you appear to have a mismatch of configs....lets see if you agree?

your last post shows line=Running in system mode: no
ditto " Using state directory /home/pi/.config/pulse

2) when you run
Code:
man 5 pulse-client.conf
you will see configs allowed are
~/.config/pulse/client.conf
~/.config/pulse/client.conf.d/*.conf
/etc/pulse/client.conf
/etc/pulse/client.conf.d/*.conf

so have you copied client.conf from etc/pulse to your home .config/pulse?

3) in your top post....it does not appear so....it appears you have used the /etc/pulse dir?

############################

so to follow your link guide....I suggest you use root powers to edit the system files
and....run it as daemon and add those config lines to /etc/pulse/system.pa


subject to your router ip...it may start 10.something not 192 something etc

3) I do not have /etc/default/pulse ....this appears to be distro specific

but the intent of that file....it to auto start the service at boot.

I assume you are running systemd on your RPi?

show the results for
Code:
sudo systemctl list-unit-files | grep enabled | grep pulse
if you get no hits delete grep enabled and see if you get any pulse hits.
we need pulse starting
Thanks a lot! Before I try all this, I'm just wondering though if, maybe it'd be easier to start from scratch and then tune the default configs?
Right now it's quite the mess at least in that I get 4 instances of the Manjaro audio sink showing up in RPi paprefs. Also, following the Stackexchange tutorial, I think I enabled the audio sharing both ways, which made it even more confusing, and I actually need only one-way (sound goes from Manjaro to Rpi). Disabling the other way again has apparently not worked, because I still see all the audio sinks of both sides on both ends...

If you say just going through your suggestions amount to cleaning up, I'll do that. I just would be happier making things work and understanding them, than just making it work, which your suggestions will probably achieve.

My RPi runs the latest version of Raspberry Pi OS so yes, systemd.
 
Old 10-31-2021, 07:27 AM   #6
bennypr0fane
Member
 
Registered: Jan 2012
Location: Central Europe
Distribution: Manjaro, Kubuntu
Posts: 171

Original Poster
Rep: Reputation: Disabled
In the meantime:
Quote:
show the results for
Code:
sudo systemctl list-unit-files | grep enabled | grep pulse
if you get no hits delete grep enabled and see if you get any pulse hits.
Both come up empty!
 
Old 10-31-2021, 04:45 PM   #7
bennypr0fane
Member
 
Registered: Jan 2012
Location: Central Europe
Distribution: Manjaro, Kubuntu
Posts: 171

Original Poster
Rep: Reputation: Disabled
Quote:
2) so have you copied client.conf from etc/pulse to your home .config/pulse?
No:
Code:
pi@raspberrypi:~ $ ls ~/.config/pulse
cbf4c75fd4c24dc0a7b80fed787762b0-card-database.tdb
cbf4c75fd4c24dc0a7b80fed787762b0-default-sink
cbf4c75fd4c24dc0a7b80fed787762b0-default-source
cbf4c75fd4c24dc0a7b80fed787762b0-device-volumes.tdb
cbf4c75fd4c24dc0a7b80fed787762b0-stream-volumes.tdb
cookie
Quote:
3) in your top post....it does not appear so....it appears you have used the /etc/pulse dir?
Yes, although I wouldn't say I used it, I guess the installer did.
Code:
pi@raspberrypi:~ $ ls /etc/pulse
client.conf  client.conf.d  daemon.conf  default.pa  system.pa
I inserted the recommended module loads:
Code:
pi@raspberrypi:~ $ cat /etc/pulse/system.pa
...
#!/usr/bin/pulseaudio -nF
#
# This startup script is used only if PulseAudio is started in system
# mode.

...

### Enable streaming to remote over network
load-module module-native-protocol-tcp auth-ip-acl=127.0.0.1;192.168.1.1/24
load-module module-zeroconf-publish

Last edited by bennypr0fane; 10-31-2021 at 06:03 PM.
 
Old 10-31-2021, 05:17 PM   #8
bennypr0fane
Member
 
Registered: Jan 2012
Location: Central Europe
Distribution: Manjaro, Kubuntu
Posts: 171

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by aus9 View Post
so to follow your link guide....I suggest you use root powers to edit the system files
and....run it as daemon and add those config lines to /etc/pulse/system.pa
...
we need pulse starting
Okay, I got it starting as a service now. I found this thread: https://forums.raspberrypi.com/viewtopic.php?t=156120
They are either making a Systemd service or combining startup scripts with crontabs (albeit this is all back from better times when Rapsberry Pi OS was still called Raspbian) . I went with the former now using those instructions:
Instead of this:
Quote:
2) Make sure PulseAudio starts automatically:

sudo nano /etc/default/pulseaudio
Look for the PULSEAUDIO_SYSTEM_START entry and change it to 1 so that looks like PULSEAUDIO_SYSTEM_START=1
I did this:

Quote:
Copy this and paste it in /etc/systemd/system/pulseaudio.service

Code:
[Unit]
Description=PulseAudio Daemon

[Install]
WantedBy=multi-user.target

[Service]
Type=simple
PrivateTmp=true
ExecStart=/usr/bin/pulseaudio --system --realtime --disallow-exit --no-cpu-limit
Then ‘systemctl enable pulseaudio’ and ‘systemctl start pulseaudio’
That worked! Was Debian maybe still not using Systemd in 2016?

I now have a working confguration! Even though it reports this authentication problem further down the line:
Code:
pi@raspberrypi:~ $ systemctl -l status pulseaudio.service
● pulseaudio.service - PulseAudio Daemon
   Loaded: loaded (/etc/systemd/system/pulseaudio.service; enabled; vendor preset
   Active: active (running) since Sun 2021-10-31 23:04:44 CET; 25s ago
 Main PID: 398 (pulseaudio)
    Tasks: 4 (limit: 4915)
   CGroup: /system.slice/pulseaudio.service
           └─398 /usr/bin/pulseaudio --system --realtime --disallow-exit --no-cp
...
Okt 31 23:27:31 raspberrypi pulseaudio[393]: W: [pulseaudio] authkey.c: Failed to open cookie file '/var/run/pulse/.config/pulse/cookie': Datei oder Verzeichnis nicht gefunden
Okt 31 23:27:31 raspberrypi pulseaudio[393]: W: [pulseaudio] authkey.c: Failed to load authentication key '/var/run/pulse/.config/pulse/cookie': Datei oder Verzeichnis nicht gefunden
Okt 31 23:27:31 raspberrypi pulseaudio[393]: W: [pulseaudio] authkey.c: Failed to open cookie file '/var/run/pulse/.pulse-cookie': Datei oder Verzeichnis nicht gefunden
Okt 31 23:27:31 raspberrypi pulseaudio[393]: W: [pulseaudio] authkey.c: Failed to load authentication key '/var/run/pulse/.pulse-cookie': Datei oder Verzeichnis nicht gefunden
Okt 31 23:27:31 raspberrypi pulseaudio[393]: W: [pulseaudio] ipacl.c: Host part of ACL entry '192.168.1.1/24' is not zero!
Okt 31 23:27:38 raspberrypi pulseaudio[393]: W: [pulseaudio] protocol-native.c: Denied access to client with invalid authentication data.
I checked "No authentication required" in Paprefs > Network Server, maybe that makes this a non-issue, because:
I've got sound from Manjaro coming out of the speakers hooked up to the RPi!

Last edited by bennypr0fane; 10-31-2021 at 05:51 PM.
 
Old 10-31-2021, 05:59 PM   #9
bennypr0fane
Member
 
Registered: Jan 2012
Location: Central Europe
Distribution: Manjaro, Kubuntu
Posts: 171

Original Poster
Rep: Reputation: Disabled
I would mark this thread as solved, configuration-wise. It's just that the sound coming from RPi is about half the volume and half the quality of what comes out when I hook the stereo up to the Manjaro box directly. The low volume isn't making me happy at all.
Does anyone have experience with this? Does streaming over the network just degrade the quality that much? On the plus side, there's no noticable lag/offset when playing video, but it's just too quiet...
And there's still this confusing mess of options in Pavucontrol and Pasystray - a dozen of servers, sinks, devices and playback streams to choose from, I managed to guess the right ones apparently.

Last edited by bennypr0fane; 10-31-2021 at 06:06 PM.
 
Old 10-31-2021, 07:03 PM   #10
aus9
LQ 5k Club
 
Registered: Oct 2003
Location: Western Australia
Distribution: Icewm
Posts: 5,842

Rep: Reputation: Disabled
its great you have sound from server Manjaro to RPi but I wonder if you have a router that shows the true addresses for each hardware?

eg on Manjaro (server) run
Code:
ip addr show
I do not have RPi set up at the moment so my server shows....with snips
inet 127.0.0.1/8 scope host lo
inet 192.168.1.2/24 brd 192.168.1.255 scope global dynamic enp34s0 (=old eth0)

look at your error message for
Quote:
SNIP entry '192.168.1.1/24' is not zero!
I think that will be resolved when you edit your file system.pa so it reads
Quote:
load-module module-native-protocol-tcp auth-ip-acl=127.0.0.1;192.168.1.2/24
but I assuming a few things about your output for ip addr show

If you agree try it and do a full reboot. If you are not sure at least show on Manjaro the full output of the ip addr show please

Last edited by aus9; 10-31-2021 at 07:12 PM.
 
Old 10-31-2021, 07:36 PM   #11
bennypr0fane
Member
 
Registered: Jan 2012
Location: Central Europe
Distribution: Manjaro, Kubuntu
Posts: 171

Original Poster
Rep: Reputation: Disabled
On Manjaro:
Code:
[ben@catull-mnj ~]$ ip addr show
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1000
    link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
    inet 127.0.0.1/8 scope host lo
       valid_lft forever preferred_lft forever
    inet6 ::1/128 scope host 
       valid_lft forever preferred_lft forever
2: enp1s0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc fq_codel state UP group default qlen 1000
    link/ether 00:01:2e:79:71:af brd ff:ff:ff:ff:ff:ff
    inet 192.168.1.2/24 brd 192.168.1.255 scope global dynamic noprefixroute enp1s0
       valid_lft 70839sec preferred_lft 70839sec
    inet6 fe80::243f:b047:1eb2:6b7e/64 scope link noprefixroute 
       valid_lft forever preferred_lft forever
3: enp0s31f6: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc fq_codel state DOWN group default qlen 1000
    link/ether 00:01:2e:79:71:ae brd ff:ff:ff:ff:ff:ff
4: wlp2s0: <BROADCAST,MULTICAST> mtu 1500 qdisc noop state DOWN group default qlen 1000
    link/ether 36:0a:58:ad:a2:1a brd ff:ff:ff:ff:ff:ff permaddr 34:f6:4b:eb:74:0e
Manjaro's IP address should be 192.168.1.2, RPi should be .3
I assigned the Manjaro IP on the router in a "reserved IP addresses list", but this didn't work for the RPi, so there I assigned it in its own OS's config file, Because the one reserved on this crappy router from my ISP failed to take effect.

Last edited by bennypr0fane; 10-31-2021 at 07:39 PM.
 
Old 10-31-2021, 07:52 PM   #12
bennypr0fane
Member
 
Registered: Jan 2012
Location: Central Europe
Distribution: Manjaro, Kubuntu
Posts: 171

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by aus9 View Post

look at your error message for
Quote:
entry '192.168.1.1/24' is not zero!
I think that will be resolved when you edit your file system.pa so it reads
Quote:
load-module module-native-protocol-tcp auth-ip-acl=127.0.0.1;192.168.1.2/24
I made the edit, so that's the IP of the sound server now. I thought it was supposed to be the router's one.
the error still looks the same though, just with a .2 instead of .1:
Code:
Nov 01 01:40:53 raspberrypi pulseaudio[420]: W: [pulseaudio] ipacl.c: Host part of ACL entry '192.168.1.2/24' is not zero!
Do you think that has anything to do with the bad sound quality?
 
Old 11-01-2021, 08:54 AM   #13
aus9
LQ 5k Club
 
Registered: Oct 2003
Location: Western Australia
Distribution: Icewm
Posts: 5,842

Rep: Reputation: Disabled
I don't know bu your OP link to stack exchange has this link embedded
https://forums.raspberrypi.com/viewt...p?f=38&t=11124

and it claims
load-module module-native-protocol-tcp auth-ip-acl=127.0.0.1;192.168.0.0/16

then @ Sat Jan 12, 2013 6:33 pm
a poster poses sound quality is a buffer problem

the next reply gives a google search which gives me
https://www.freedesktop.org/wiki/Sof.../User/Network/

and that has a change of config
Quote:
load-module module-esound-protocol-tcp auth-anonymous=1
load-module module-native-protocol-tcp auth-ip-acl=127.0.0.1;192.168.0.0/16
^^ that may well solve your earlier errors for authentication?

(2) staying with that freedesktop link it discusses alternatives.

and I am thinking....ok your sound files are on Manjaro.
What if you could copy them to a usb storage to cut out that element

and what if you had bluetooth speaker system and streamed from just RPi to BT speakers and cut out this lag in streaming?
 
Old 11-03-2021, 07:05 PM   #14
bennypr0fane
Member
 
Registered: Jan 2012
Location: Central Europe
Distribution: Manjaro, Kubuntu
Posts: 171

Original Poster
Rep: Reputation: Disabled
I found the problem:
Alsa had the volume level at 40% for the analog sound card. Adjusting it to 100% using Alsamixer, I get normal volume from the Pi. I was able to find this by posting in the Pulseaudio Matrix channel.
It's been also discussed over at the Raspberry Pi forums:
https://forums.raspberrypi.com/viewt...rt=25#p1799483
Cheers, and thanks a lot!
 
  


Reply

Tags
network audio, pulseaudio rtp multicast, rasperry pi



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Trying to mount USB drive of RPi A into RPi B suziecat Linux - Newbie 5 09-28-2021 08:23 AM
LXer: GNOME 3.33.2 Released, Krita 4.2 Debuts, RPi Camera Modules on RPi Zeros Power the Penguin Watch Project, Intrinsyc Switches Its Home LXer Syndicated Linux News 0 05-30-2019 06:23 AM
LXer: Mini-PC taps RPi Compute Module and supports RPi 2 LXer Syndicated Linux News 0 02-22-2015 03:03 PM
Network Audio Sink and Audio Mastering for Radio Station dutler Linux - Software 1 11-30-2009 04:33 PM
Heat sink, or not to heat sink ? Pres Linux - Hardware 4 07-13-2003 03:49 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware > Linux - Embedded & Single-board computer

All times are GMT -5. The time now is 04:15 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration