forked from Lainports/freebsd-ports
sound API with the JACK audio server (jackit.sf.net). libjackasyn is a library that can be used for two purposes. First it can be loaded via the LD_PRELOAD variable, turning OSS applications automatically into JACK-aware applications. Second, it can be used to link against the program during build time, making it trivial to turn an OSS aware sound application into a JACK aware sound application in a short time. libjackasyn got its name from the asynchronous manner in which it communicates with the JACK server, which means by using libjackasyn you will introduce an additional delay exactly the size of one JACK audiobuffer (1024 samples or 44 ms with the JACK default settings). This delay can be reduced by reducing the JACK buffersize. It should not matter for sound generating applications, but it might introduce phasing effects when doing sound processing. WWW: http://gige.xdv.org/libjackasyn/ PR: ports/94290 Submitted by: Jose Alonso Cardenas Marquez <acardenas@bsd.org.pe>
35 lines
841 B
Text
35 lines
841 B
Text
###############################################################################
|
|
|
|
1) To use libjackasyn as a jack's client, you need to set LD_PRELOAD.
|
|
|
|
csh:
|
|
setenv LD_PRELOAD %%PREFIX%%/lib/libjackasyn.so
|
|
|
|
bash:
|
|
export LD_PRELOAD=%%PREFIX%%/lib/libjackasyn.so
|
|
|
|
And start jackd (only works using root account)
|
|
|
|
# jackd -d oss
|
|
|
|
2) You need procfs mounted.
|
|
|
|
# mount_procfs procfs /proc
|
|
|
|
Also you could edit your /etc/fstab file and add this line
|
|
|
|
proc /proc procfs rw 0 0
|
|
|
|
This to load procfs on boot time, or typing
|
|
|
|
# mount /proc
|
|
|
|
3) Run your program (using root account, jackd and xmms must have the same uid).
|
|
|
|
Example: xmms + xmms-jackasyn
|
|
|
|
# xmms
|
|
|
|
If jackd isn't running, the libjackasyn will use normal oss device
|
|
|
|
##############################################################################
|