We have moved to a new Sailfish OS Forum. Please start new discussions there.
20

Audio output over network.

asked 2014-01-28 01:26:11 +0300

ApB gravatar image

Pulseaudio has the ability to stream audio over a network. It would be nice to have the ability -UI to be easy to use because the functionality is probably there- to select a sink to stream to from the phone. It can discover sinks through avahi and make it even more hassle free.

edit retag flag offensive close delete

Comments

1

The feature is not about DLNA and the like. It has to do with pulse audio. Also with the appropriate module (raop2) airplay devices can be used instead of PA servers.

ApB ( 2014-01-28 13:50:21 +0300 )edit

I would be happy to play rtp/rtps protocol out of box as easy for everyobdy end user from and as well from media app withtout external app for the basic function. Select the channel radio/tv and listen/watch directly like you can do with classic tv/radio

redge73 ( 2014-05-02 23:00:24 +0300 )edit

Also anyone interested in having stuff like that work with less user intervention please upvote this:

https://together.jolla.com/question/10733/add-support-for-avahi-aka-zeroconf/

Thanks in advance.

ApB ( 2014-06-25 00:00:19 +0300 )edit

I have seen an App on some repo or in the Jollastore that does this, but unfortunately I don't remember the name. If I find, I'll post it; but you can try searching yourself.

dthierbach ( 2014-06-29 09:52:33 +0300 )edit

3 Answers

Sort by » oldest newest most voted
2

answered 2014-01-28 04:25:28 +0300

chemist gravatar image

If you try doing something like sonos or things - multicast RTP over WIFI is pretty no-go-land. I have tried and mastered N900's and N9's PA at least once and found it useless for music. Some like this http://www.freedesktop.org/wiki/Software/PulseAudio/Documentation/User/Network/

I don't know if the modules are implemented

edit flag offensive delete publish link more

Comments

What about supporting UPnP/DLNA or such?

avdwoude ( 2014-01-28 10:14:56 +0300 )edit

@avdwoude that is no network-audio-solution, you stream a file that the other end needs to be able to read and playback

chemist ( 2014-01-28 17:15:42 +0300 )edit

Ah ok, my bad, I thought that they were equivalent except that in multicast you'd have more than one listener.

avdwoude ( 2014-01-28 22:45:29 +0300 )edit
2

I tried using the PulseAudio documentation in the answer above and got it to work. On my desktop Linux system I used pacmd to load-module module-native-protocol-tcp auth-anonymous=1. Then on my Jolla I used:

  • PULSE_SERVER="my.desktop.system" paplay /usr/share/sounds/freedesktop/stereo/alarm-clock-elapsed.oga

And the beeps played through my desktop speakers.

So, the next things to work out are:

  1. Installing a command line media player
  2. And/or working out how I tell PulseAudio to redirect all system audio (for the time being) to the remote stream
gcobb ( 2014-01-29 01:07:48 +0300 )edit

@gcobb as soon as the system rearranges anything sink wise you loose - I stopped trying at that point as I did not want to mess up the PA setup of my phones in general just to have network-streaming, the settings need to be implemented with the whole setup to be permanent and that is not as easy...

chemist ( 2014-01-29 16:48:49 +0300 )edit
5

answered 2014-06-24 11:22:39 +0300

Zer0C001 gravatar image

updated 2014-06-24 13:33:41 +0300

Here are the steps I used, to stream audio from my PC to my phone, in order to do the opposite you can use the PulseTunnel app from jolla store :

1) edit /etc/pulse/xpolicy.conf ( you need to be root ), find the section named Stream and add:

[stream]
exe     = pulseaudio
group   = player

and restart pulseaudio

2) as user nemo, execute : pactl load-module module-native-protocol-tcp auth-ip-acl=<your_pc's_ip>

3) on your PC execute: pacmd load-module module-tunnel-sink server=<your_jolla's_ip>

Of course step 1 is done only once, step 2 is done after every reboot of the jolla and step 3 is done after every disconnect.

pactl and pacmd also have an option 'unload-module'.

For better performance, you can use the "developer mode" network.

edit flag offensive delete publish link more

Comments

2

Thats nice but we need to have this easily available -with a GUI- and zeroconf/avahi to joe average user.

ApB ( 2014-06-24 12:37:21 +0300 )edit
0

answered 2014-06-24 17:13:10 +0300

Macilaci457 gravatar image

What about a BT receiver directly to the audio system/ amplifier? Should work as a stereo headset profile used, need no app on Jolla nor a working computer to receiva what a speaker should.

edit flag offensive delete publish link more

Comments

I replaced the BT connection with a wire... you cannot even walk through the line of sight without interupt...

chemist ( 2014-06-24 17:19:06 +0300 )edit

I heard that limit with the current offerings, but in theory it should work, with improved receivers, I think.

Macilaci457 ( 2014-06-24 19:50:30 +0300 )edit

So we are talking future?

chemist ( 2014-06-24 21:06:03 +0300 )edit

Talking about hacking and better antenna.

Macilaci457 ( 2014-06-25 10:21:07 +0300 )edit

Hint: Use the pc as a2dp receiver. I found tutorials for that, but can not test it yet. Then the range could be extended, hopefully.

Macilaci457 ( 2014-06-25 10:25:09 +0300 )edit
Login/Signup to Answer

Question tools

Follow
4 followers

Stats

Asked: 2014-01-28 01:26:11 +0300

Seen: 1,655 times

Last updated: Jun 24 '14