Quantcast

OpenAL Soft fallback

classic Classic list List threaded Threaded
9 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

OpenAL Soft fallback

gouessej
Administrator
Hi

Is there any plan to support OpenAL Soft? Some GNU Linux distros don't install it by default, it would be fine to have it. Several people spoke about it several months ago but it has not been implemented. What is currently missing to make it work? If we try to load OpenAL Soft native libraries instead of OpenAL ones, will it work? Does it require some other changes?
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: OpenAL Soft fallback

Sven Gothel
Administrator
On 04/05/2012 04:44 PM, gouessej [via jogamp] wrote:

>
>
> Hi
>
> Is there any plan to support OpenAL Soft? Some GNU Linux distros don't
> install it by default, it would be fine to have it. Several people spoke
> about it several months ago but it has not been implemented. What is
> currently missing to make it work? If we try to load OpenAL Soft native
> libraries instead of OpenAL ones, will it work? Does it require some other
> changes?
Good call.

Currently we deploy native OpenAL libraries w/ JOAL,
maybe they are not quite complete yet ?
Of course, they may not work with a certain distribution
and I haven't tested JOAL a lot.

Currently I do something similar w/ audio video streaming
but it naturally seems that we will rely on some multimedia framework
installed like gstreamer, ffmpeg, .. etc.

Chrome and Firefox (the webrowser) for example deploy their codec libraries w/
their application AFAIK.

~Sven


signature.asc (910 bytes) Download Attachment
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: OpenAL Soft fallback

gouessej
Administrator
Sven Gothel wrote
On 04/05/2012 04:44 PM, gouessej [via jogamp] wrote:
Currently we deploy native OpenAL libraries w/ JOAL,
maybe they are not quite complete yet ?
When I reinstalled Mageia Linux 1 without any OpenAL RPM, it complained about the lack of native library, I got an UnsatisfiedLinkError and Paul Lamb Sound System switched to JavaSound. Which native OpenAL libraries are provided with JOAL? Maybe they are not in the JARs, I don't know.

Edit.: libopenal.so is in the JAR but it is not loaded when there are no support of OpenAL on a given machine.
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: OpenAL Soft fallback

Xerxes Rånby
Sven Gothel wrote
On 04/05/2012 04:44 PM, gouessej [via jogamp] wrote:
Currently we deploy native OpenAL libraries w/ JOAL,
maybe they are not quite complete yet ?
OpenAL-soft 1.14 is out while the OpenAL-soft we bundle w/ JOAL is the old 1.12.
http://kcat.strangesoft.net/openal.html

For JogAmp arch complete support it would be best to build the 1.14 version from source during the JOAL build instead of carrying around the joal/make/lib blobs.
https://github.com/sgothel/joal/blob/master/make/lib/FILES.txt

It is also possible to build directly from openal-soft git.
git clone git://repo.or.cz/openal-soft.git openal-soft

gouessej wrote
When I reinstalled Mageia Linux 1 without any OpenAL RPM, it complained about the lack of native library, I got an UnsatisfiedLinkError and Paul Lamb Sound System switched to JavaSound. Which native OpenAL libraries are provided with JOAL? Maybe they are not in the JARs, I don't know.

Edit.: libopenal.so is in the JAR but it is not loaded when there are no support of OpenAL on a given machine.
Thank you for the bugreport, please run with -Djogamp.debug.NativeLibrary=true and report to bugzilla:
https://jogamp.org/bugzilla/show_bug.cgi?id=608
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: OpenAL Soft fallback

Xerxes Rånby
This post was updated on .
I have started on a JOAL openal-soft branch to build and provide an openal-soft fallback for all architectures that we support:
https://github.com/xranby/joal/compare/openal-soft

# How to compile it:
# It will require a new JOAL build dependency: cmake
apt-get intall cmake
# The idea is to first checkout the openal-soft git next to the joal git tree:
git clone git://repo.or.cz/openal-soft.git openal-soft
# Then build JOAL normally.
cd joal/make
sh /scripts/make.joal.all.linux-x86_64.sh

The generated joal-natives-*.jar will contain the
libjoal.so
all the current bundled OpenAL and from creative "OpenAL32.dll  wrap_oal.dll " and OpenAL-soft libs built by various linux distributions like libopenal.so pulled from the joal/make/lib/* dir based on os and arch.
and optionally the new build of libopenal.so if the openal-soft git was found next to the joal build.
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: OpenAL Soft fallback

gouessej
Administrator
Thank you. It is really useful to get some OpenAL support even though it is not installed or if the hardware implementation can't be loaded.
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: OpenAL Soft fallback

gouessej
Administrator
In reply to this post by Xerxes Rånby
Xerxes, do you plan to make a pull request for this change?
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: OpenAL Soft fallback

Xerxes Rånby
gouessej wrote
Xerxes, do you plan to make a pull request for this change?
Done, pull request added:
https://github.com/sgothel/joal/pull/3
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: OpenAL Soft fallback

gouessej
Administrator
Thanks.
Loading...