oss2jack is a daemon that creates a userspace /dev/dsp device using the fusd library (Bug #96449). Sound coming from audio applications over the dsp device is redirected to jackd. It supports playback, recording and mmap. Reproducible: Always Steps to Reproduce:
Created attachment 61440 [details] Suggested ebuild oss2jack has been tested on x86 with some audio programs and works correctly. Too large jack buffers may cause sound quality issues.
This is now in the sunrise overlay. You can find it at: http://gentoo-sunrise.org/svn/reviewed/media-sound/oss2jack
trying to emerge it fails in fusd-kor >>> Compiling source in /var/tmp/portage/fusd-kor-1.10.11/work/fusd-kor-1.10-11 ... * Preparing kfusd module echo EXTRA_CFLAGS=-I/var/tmp/portage/fusd-kor-1.10.11/work/fusd-kor-1.10-11/kfusd/../include EXTRA_CFLAGS=-I/var/tmp/portage/fusd-kor-1.10.11/work/fusd-kor-1.10-11/kfusd/../include make -C /lib/modules/2.6.17-gentoo-r7/build SUBDIRS=/var/tmp/portage/fusd-kor-1.10.11/work/fusd-kor-1.10-11/kfusd EXTRA_CFLAGS=-I/var/tmp/portage/fusd-kor-1.10.11/work/fusd-kor-1.10-11/kfusd/../include modules make[1]: Entering directory `/usr/src/linux-2.6.17-gentoo-r7' CC [M] /var/tmp/portage/fusd-kor-1.10.11/work/fusd-kor-1.10-11/kfusd/kfusd.o /var/tmp/portage/fusd-kor-1.10.11/work/fusd-kor-1.10-11/kfusd/kfusd.c:181: error: syntax error before string constant /var/tmp/portage/fusd-kor-1.10.11/work/fusd-kor-1.10-11/kfusd/kfusd.c:181: warning: type defaults to `int' in declaration of `MODULE_PARM' /var/tmp/portage/fusd-kor-1.10.11/work/fusd-kor-1.10-11/kfusd/kfusd.c:181: warning: function declaration isn't a prototype /var/tmp/portage/fusd-kor-1.10.11/work/fusd-kor-1.10-11/kfusd/kfusd.c:181: warning: data definition has no type or storage class /var/tmp/portage/fusd-kor-1.10.11/work/fusd-kor-1.10-11/kfusd/kfusd.c: In function `fusd_register_device': /var/tmp/portage/fusd-kor-1.10.11/work/fusd-kor-1.10-11/kfusd/kfusd.c:2036: warning: label `register_failed2' defined but not used /var/tmp/portage/fusd-kor-1.10.11/work/fusd-kor-1.10-11/kfusd/kfusd.c: In function `init_fusd': /var/tmp/portage/fusd-kor-1.10.11/work/fusd-kor-1.10-11/kfusd/kfusd.c:2929: warning: label `fail7' defined but not used /var/tmp/portage/fusd-kor-1.10.11/work/fusd-kor-1.10-11/kfusd/kfusd.c:2941: warning: label `fail2' defined but not used make[2]: *** [/var/tmp/portage/fusd-kor-1.10.11/work/fusd-kor-1.10-11/kfusd/kfusd.o] Error 1 make[1]: *** [_module_/var/tmp/portage/fusd-kor-1.10.11/work/fusd-kor-1.10-11/kfusd] Error 2 make[1]: Leaving directory `/usr/src/linux-2.6.17-gentoo-r7' make: *** [default] Error 2 !!! ERROR: media-sound/fusd-kor-1.10.11 failed. Call stack: ebuild.sh, line 1546: Called dyn_compile ebuild.sh, line 937: Called src_compile fusd-kor-1.10.11.ebuild, line 33: Called linux-mod_src_compile linux-mod.eclass, line 469: Called die ------ infoPortage 2.1.1 (default-linux/x86/2006.0, gcc-3.4.6, glibc-2.4-r3, 2.6.17-gentoo-r7 i686) ================================================================= System uname: 2.6.17-gentoo-r7 i686 Mobile AMD Athlon(tm) XP 3000+ Gentoo Base System version 1.12.5 Last Sync: Mon, 25 Sep 2006 22:30:01 +0000 ccache version 2.3 [disabled] app-admin/eselect-compiler: [Not Present] dev-java/java-config: 1.2.11-r1 dev-lang/python: 2.4.3-r1 dev-python/pycrypto: 2.0.1-r5 dev-util/ccache: 2.3 dev-util/confcache: [Not Present] sys-apps/sandbox: 1.2.17 sys-devel/autoconf: 2.13, 2.59-r7 sys-devel/automake: 1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2 sys-devel/binutils: 2.16.1-r3 sys-devel/gcc-config: 1.3.13-r3 sys-devel/libtool: 1.5.22 virtual/os-headers: 2.6.17-r1 ACCEPT_KEYWORDS="x86" AUTOCLEAN="yes" CBUILD="i686-pc-linux-gnu" CFLAGS="-O2 -march=athlon-4 -fomit-frame-pointer -mno-tls-direct-seg-refs" CHOST="i686-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/NX/etc /usr/NX/home /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/lib/fax /usr/share/X11/xkb /usr/share/config /usr/share/texmf/dvipdfm/config/ /usr/share/texmf/dvips/config/ /usr/share/texmf/tex/generic/config/ /usr/share/texmf/tex/platex/config/ /usr/share/texmf/xdvi/ /var/spool/fax/etc" CONFIG_PROTECT_MASK="/etc/env.d /etc/gconf /etc/revdep-rebuild /etc/terminfo" CXXFLAGS="-O2 -march=athlon-4 -fomit-frame-pointer -mno-tls-direct-seg-refs" DISTDIR="/usr/portage/distfiles" FEATURES="autoconfig distlocks metadata-transfer parallel-fetch sandbox sfperms strict userpriv usersandbox" GENTOO_MIRRORS="http://ftp.easynet.nl/mirror/gentoo/ ftp://pandemonium.tiscali.de/pub/gentoo/ ftp://ftp.snt.utwente.nl/pub/os/linux/gentoo http://mir.zyrianes.net/gentoo/" LINGUAS="en_GB nl en" MAKEOPTS="-j2" PKGDIR="/usr/portage/packages" PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --stats --timeout=180 --exclude='/distfiles' --exclude='/local' --exclude='/packages'" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/local/portage /usr/portage/local/layman/sunrise" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="x86 3dnow X X509 aalib accessibility acl acpi activefilter alsa apache2 arts audiofile bash-completion berkdb bitmap-fonts bluetooth bootsplash bzip2 cairo caps cdparanoia cdr cli crypt cups curl directfb divx4linux dlloader dri dvb dvd dvdr dvdread edl eds elibc_glibc emboss encode esd eurofile exiscan exiscan-acl extensions fbcon flac fltk font-server foomaticdb fortran fpx frxp gcj gdbm ggi gif gimp gimpprint glut gmp gnokii gnome gnutls gphoto2 gpm graphviz gstreamer gtk gtk2 hal hardenedphp idea ieee1394 imap imlib input_devices_evdev input_devices_keyboard input_devices_mouse ipppd ipv6 isdnlog ithreads jack jack-tmpfs java java-script jbig jpeg jpeg2k kde kernel_linux kqemu ladcca lcms ldap libcaca libclamav libg++ libwww linguas_en linguas_en_GB linguas_nl live lm_sensors lzo mad mailwrapper matroska memlimit mikmod mjpeg mmap mmx motif mp3 mpeg mschap musicbrainz mysql nagios-dns nagios-game nagios-ntp nagios-ping nagios-ssh nas ncurses network nls nptl nptlonly nsplugin oav odbc ogg openexr opengl oss pam pcmcia pcre pda perl plotutils png pnp portaudio povray ppds pppd python qt qt3 qt4 quicktime quotas radius rdesktop readline real reflection rtc samba sasl sdl session silc skey slang slp sndfile snmp snortsam softmmu speex spell spf spl srs sse ssl syslog tcltk tcpd theora tiff truetype truetype-fonts type1-fonts udev unicode ups usb userland_GNU userlocales video_cards_radeon visualization vorbis wifi win32codecs winbind wmf xanim xfs xml xmms xorg xscreensaver xv xvid yv12 zeroconf zlib" Unset: CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, LDFLAGS, PORTAGE_RSYNC_EXTRA_OPTS
#3 this is known to me, just remove the line it complains about here: /var/tmp/portage/fusd-kor-1.10.11/work/fusd-kor-1.10-11/kfusd/kfusd.c:181: error: syntax error before string constant and it will work. maybe a bad hack but compiles and works. Can someone please fix the ebuild, I'm not used to sed, thanks.
Then this is the patch that needs to be applied --- kfusd.c.orig 2006-09-27 00:41:37.000000000 +0200 +++ kfusd.c 2006-09-27 00:43:06.000000000 +0200 @@ -178,7 +178,7 @@ #ifdef CONFIG_FUSD_DEBUG STATIC int fusd_debug_level = CONFIG_FUSD_DEBUGLEVEL; -MODULE_PARM(fusd_debug_level, "i"); +//MODULE_PARM(fusd_debug_level, "i"); #define BUFSIZE 1000 /* kernel's kmalloc pool has a 1012-sized bucket */
Dropped from sunrise overlay because of missing dependency (sys-apps/realtime-lsm), feel free to join the sunrise project and add a new, updated and working version.
oss2jack isn't in the tree anymore, I guess it can be closed now.
jack still lives, but oss doesn;t so this probably can be closed as well.