[LAU] Re: Sending audio to a pipewire sink

John Murphy <sosopoet-VwIFZPTo/[email protected]>
Newsgroups gmane.linux.audio.users
Message-ID <20251218071026.5e4b10c7@i7work>
On Thu, 18 Dec 2025 01:07:53 +0100 Mitsch wrote:

> Am Mittwoch, dem 17.12.2025 um 18:33 +0000 schrieb John Murphy:
> > 
> > pw-link.  
> 
> Okay…
> Tried a one-liner to make it work:
> 
> pw-play Test.wav & sleep .1 && pw-link pw-play:output_FL
> bluez_output.[bt-address].1:playback_FL && pw-link pw-play:output_FR
> bluez_output.[bt-address].1:playback_FR && pw-link -d pw-play:output_FR
> alsa_output.pci-0000_00_1b.0.analog-stereo:playback_FR && pw-link -d
> pw-play:output_FL alsa_output.pci-0000_00_1b.0.analog-
> stereo:playback_FL
> 
> Instead of "jack-play" which I can't find on my system I used "pw-
> play". Fortunately, it's only a *.wav-file that has to be played.
> Unfortunately, "pw-play" can't send the stream to the right output by
> itself, so four further "pw-link"-commands are necessary.
> If I don't use "sleep", "pw-link" comes to action before "pw-play" can
> play anything.

I should have mentioned that jack-play is in the jack-tools package.
You also get jack-transport, which would save you having to put the
delay in your line. You would be able to start jack-play first, with
a -t in the command line to make it transport aware. Then make the
links and then use jack-transport to play, stop, locate, etc..

Or you could use jack_transport, which may be installed (it isn't
part of jack-tools, so I'm not sure what it came with).

> > I expect there are better ways, but it works very well for me.  
> 
> Yeah, it's more complicated than I hoped it will be, but it does work…
> Still hoping for a better solution… ;)

Let us know when you find it :)

-- 
_______________________________________________
Linux-audio-user mailing list -- [email protected]
To unsubscribe send an email to [email protected]
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.