answered
2017-03-29 10:04:51 +0200
Unfortunantly the Headphone Jack is another issue.
There seem to be three sinks available. One for the physical soundcard, where the driver (provided by alsa i suppose) decides where to output the sound.
The others just point do /dev/null - because even linux useres have a need (schlechthinge abhängigkeit?) for the Myteriouse i suppose :)
You can set a default sink either by using PulseTunnel (long press on the sink and select "use as default" or by using the pacmd command
If you have another output device (e.g. your bluetooth headset) you can route the stream of single application to that sink (again by using pacmd or PulseTunnle) or, if you fancy it, route the streams to two or more sinks simultaniously and effectivly creating a multi room audio system using sailfishos :)
So you could set the default sink to default and just route the stream of your media player to the bluetooth device.
However i don't belive this is possible for the Speakers/Headphone Jack, due to hardware limitations. The Soundcard would need two Analog-Digital Converters to process two different audio streams (e.g. one for music and one for notifications). Which i don't belive would make any sense for smartphones.
However this limitation does not exist for bluetooth devices, because they have their own ADC (or is it DAC?)
I've installed the situations app and added a condition to change the ringtone to 10-20% when a headset is connected (also works with bluetooth headsets)
till ( 2017-03-28 12:50:42 +0200 )editYeah. That's what I did as well. Maybe I should clarify that the real question is for the alternative solution, if I can have notifications still played on main speaker instead of playing them on headphones. AFAIK know salifish uses pulse audio as audio driver and AFAIK the output can be routed for different services, so theroratically it could be possible?
naytsyrhc ( 2017-03-28 13:35:31 +0200 )editOk. I adjusted the title/question and the description to clarify.
naytsyrhc ( 2017-03-28 13:40:10 +0200 )edityou could try to use PulseTunnel from Warehouse to archieve this. It is a frontend for PulseAudio and i succesfully used it to stream to another host using this.
from a first glance you should be able to select another sink (output device in PulseAudio slang) for variouse streams (input in PA). But for example CuteSpot did not create its own stream for me but used the system one. But this might be another issue. I was able to route the audio from an sdl app to null though while keeping the rest of the system on my headphones.
vorletzter ( 2017-03-28 21:18:55 +0200 )editOk. First couldn't find that on openrepos, but I now got it from jolla store directly. Unfortunately I did not figure out howto use it (yet).
naytsyrhc ( 2017-03-28 21:59:06 +0200 )edit