REPRODUCIBILITY (% or how often): 100%
BUILD ID = OS VERSION (Settings > About product): ANY
HARDWARE (XA2, Xperia 10…): ANY
UI LANGUAGE: ANY
REGRESSION: (compared to previous public release: Yes, No, ?): No
DESCRIPTION:
I have port some projects, which use OpenAL-spft as audio library. But in sailfish os, for right sound output we must use only PulseAudio, or you cant change sound volume of your application inside SailfishOS (it just ignore it, and pay on full sound volume)
PRECONDITIONS:
STEPS TO REPRODUCE:
- build your own openal apptlication
- play any sound in your application
- try change sound volume in system
EXPECTED RESULT:
should change sound of your application
ACTUAL RESULT:
application still play on maximum sound
WHAT NEED TO DO:
Just need build openal with disabled any backend, only with pulseaudio backend, with
cmake \
-DALSOFT_REQUIRE_PULSEAUDIO=ON \
-DALSOFT_BACKEND_ALSA=OFF \
-DALSOFT_BACKEND_ALSA=OFF \
-DALSOFT_BACKEND_SOLARIS=OFF \
-DALSOFT_BACKEND_SNDIO=OFF \
-DALSOFT_BACKEND_PORTAUDIO=OFF \
-DALSOFT_BACKEND_JACK=OFF \
-DALSOFT_BACKEND_COREAUDIO=OFF \
-DALSOFT_BACKEND_OPENSL=OFF \
-DALSOFT_BACKEND_OBOE=OFF \
-DALSOFT_BACKEND_OSS=OFF \
-DALSOFT_REQUIRE_SDL2=OFF \
-DALSOFT_BACKEND_SDL2=OFF \
-DALSOFT_EXAMPLES=OFF \
with this cmake options, openal now work properly in SailfishOS, and use global sound volume settings.
i was test it with allready exists applictions, sound work properly. (love2d engine games, like ClockWind )
This bug was in TuxRacer. (it use SDL sound, and it too work not properly, eems SDL2 too has wrong.backend (not.pulseaudio).)
In Quake 2 build, i was use compiled static SDL2 (with sdl audio), and it work properly, bacuse support only pulseaudio as backend.
P.S.
i cant login to git.sailfishos.org, a cant make MR to https://git.sailfishos.org/mer-core/libopenal