[pulseaudio-discuss] PulseAudio Network Sink: Respect alternative sample rate and format
Tanu Kaskinen
tanuk at iki.fi
Mon Jul 24 20:20:37 UTC 2017
On Sun, 2017-07-23 at 02:59 +0200, Maximilian Böhm wrote:
> Hello, I’m very happy that I finally got PulseAudio’s awesome network
> sink feature set up. Works so far, but the AV receiver on the other
> computer tells me it gets 41,1 kHz whereas my input in the sink from
> my client computer is 48 kHz (movies).
> On both computers, the /etc/pulse/daemon.conf is configured like so:
>
> default-sample-format = s24le
> default-sample-rate = 44100
> alternate-sample-rate = 48000
>
> If I set the default sample rate to 48 kHz on the server, the AV
> receiver gets 48 kHz as well. But I’m afraid my client could still be
> sending a resampled 41,1 kHz signal to the server. Also, no idea if
> the 24-bit format is preserved or cut to 16-bit (I play a lot video
> tracks in 24-bit).
> My preferred setup would be one in which the server switches from 48
> kHz to 41,1 kHz dependent on how it gets input, like a desktop. BTW,
> this works flawlessly over a direct S/PDIF connection from my
> computers to the AV receiver.
> I can’t find any documentation on this. Would appreciate your help.
So you have loaded module-tunnel-sink on the client? The tunnel sink
doesn't currently support switching the rate depending on what
applications play to it.
Do you use any local sound cards on the client? If not, then you could
set "default-server = server_hostname_or_ip" in /etc/pulse/client.conf.
Then all applications on the client machine will connect directly to
the server machine. The sample rate that the server will then
automatically change depending on the applications.
--
Tanu
https://www.patreon.com/tanuk
More information about the pulseaudio-discuss
mailing list