Jack on OpenSolaris

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

Jack on OpenSolaris

Doug Scott-4
Hey,
   For anybody who is interested, I have some patches for Jack so it builds on OpenSolaris with the latest Sun Studio compiler. Also included in the patches are code to allow Jack to run with the realtime scheduler using RBAC. I have tested it using mplayer and the oss drivers.

The following is entry I added to /etc/security/exec_attr which allows a normal user to run jackd in realtime with jackstart or pfexec.
Basic Solaris User:solaris:cmd:::/usr/bin/jackd:privs=proc_priocntl,proc_lock_memory,sys_resource

Patch 01 just brings Jack 0.103.0 sourcecode up to the Jack subversion 1051 release
    jack-01-svn1051.diff
Patch 02 has the bulk of the changes needed for Open Solaris and Sun Studio 12 Patch 124868-01
    jack-02-solaris.diff
Patch 03 adds a macro for timersub that I found on the net.
    jack-03-timersub.diff

The build spec files SFEjack.spec and jack.spec can found at the spec-files-extra repository on sourceforge. If you need more info on how to build it with the spec files, just reply....

Doug

doug@prae> uname -a
SunOS prae 5.11 opensol-20070820 i86pc i386 i86pc
doug@prae> jackstart -R -d oss
back from read, ret = 1 errno == Error 0
jackd 0.107.2
Copyright 2001-2005 Paul Davis and others.
jackd comes with ABSOLUTELY NO WARRANTY
This is free software, and you are welcome to redistribute it
under certain conditions; see the file COPYING for details

JACK compiled with System V SHM support.
loading driver ..
oss_driver: /dev/dsp : 0x10/2/48000 (4096)
oss_driver: indevbuf 4096 B, outdevbuf 4096 B
oss_driver: using barrier mode, (dual thread)
--------------
doug@prae> mplayer -ao jack itmatters_2007-08-17-150329.mp3
MPlayer 1.0rc1-3.4.3 (C) 2000-2006 MPlayer Team
CPU: AMD Athlon(tm) 64 X2 Dual Core Processor 3800+ (Family: 15, Model: 75, Stepping: 2)
CPUflags:  MMX: 1 MMX2: 1 3DNow: 1 3DNow2: 1 SSE: 0 SSE2: 0
Compiled for x86 CPU with extensions: MMX MMX2 3DNow 3DNowEx SSE SSE2

Playing itmatters_2007-08-17-150329.mp3.
Audio file file format detected.
==========================================================================
Opening audio decoder: [mp3lib] MPEG layer-2, layer-3
AUDIO: 44100 Hz, 2 ch, s16le, 128.0 kbit/9.07% (ratio: 16000->176400)
Selected audio codec: [mp3] afm: mp3lib (mp3lib MPEG layer-2, layer-3)
==========================================================================
AO: [jack] 48000Hz 2ch floatle (4 bytes per sample)
Video: no video
Starting playback...
-----------------
doug@prae> ps -e -o pid,pri,lwp,class,fname | egrep 'jack|mplayer'
101122  49      1   IA mplayer
101122 109      2   RT mplayer
101114 110      1   RT jackd
101114 110      2   RT jackd
101114 110      3   RT jackd
101114 120      4   RT jackd
101114 110      5   RT jackd
101114 110      6   RT jackd




-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >>  http://get.splunk.com/
_______________________________________________
Jackit-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/jackit-devel