The
jacklaunch command can be used to turn sound programs that are accessing
the OSS sound system into JACK aware applications. It is using
a library called libjackasyn, which is preloaded with the LD_PRELOAD
environment variable.
The same effect can be achieved by setting the LD_PRELOAD variable
globally.
export LD_PRELOAD=/usr/lib/libjackasyn.so.0
In this case all of the programs using the OSS API will be run
as JACK clients if the jackd is started. If jackd is not started
they will behave in their normal way and use the OSS sound I/O
directly.