OS VERSION: 184.108.40.206
HARDWARE: X10 II
UI LANGUAGE: cs
OSM Scout and Pure Maps applications are using “navigator” audio (resource?) class by setting
NEMO_RESOURCE_CLASS_OVERRIDE environment variable. With this resource class, music player is paused when application is playing voice instructions, and resumed after. But this resource class also affects pulseaudio routing. Navigation instructions are played via phone speakers even bluetooth headphones are connected (or car speakers are connected via bluetooth). But music is routed via headphones / car speakers properly.
When “game” resource class is used, voice instructions are routed to bluetooth headphones properly and even music player is paused and resumed properly. But using “game” class sounds weird for map/navigation software.
Routing may be fixed easily. It is just necessary to add
route_audio flag to
navigator group in
[group] name = navigator flags = set_sink, set_source, route_audio sink = droid.output.media_latency@equals:"true" source = droid.input.builtin@equals:"true"
- pair and connect bluetooth heaphones
- play some music in Media application, it should be routed via bluetooth
- open OSM Scout, settings page…
- download some navigation voice
- select voice, play sample - it is routed to phone speaker
- should be routed to bluetooth headphones
- voice is routed to phone speakers
resource class override support: Implement more full resource policy features. · qt/qtmultimedia@1c5ea95 · GitHub
issue with paused media player: Playing audio file with QMediaPlayer pause Media player - #5 by karry
Pure maps issue: [SFOS] Prevent voice navigation stopping other audio · Issue #120 · rinigus/pure-maps · GitHub