On Mon, Jan 23, 2012 at 07:33:20PM +0100, Antoine Jacoutot wrote:
> On Tue, Jan 24, 2012 at 12:11:32AM +0600, Alexandr Shadchin wrote:
> > On Mon, Jan 23, 2012 at 03:22:38PM +0100, Antoine Jacoutot wrote:
> > > Hi.
> > >
> > > This diff updates jack to the most recent release (of jack1, not jack2).
> > >
> > > Comments/Testers/OK?
> > >
> > >
> >
> > * attach diff for files/sndio_driver.c
> > * in Makefile
> > post-extract:
> > mkdir -p ${WRKSRC}/drivers/sndio
> > cp ${FILESDIR}/Makefile.am ${FILESDIR}/sndio_driver.{c,h} \
> > ${WRKSRC}/drivers/sndio
> > ^^^^
> > extra spaces
>
> Thanks. New diff.
>
Somewhat works here (but not 100%) stable, tested playback and
capture.
> It is possible to run jackd on top of aucat(1) with the 'sndio' driver.
> However, the aucat server must be running at a higher than default
> -scheduling priority. The aucat(1) manual has an example for doing this
> -with renice(8). Note that jackd will use aucat's block size as it's
> +scheduling priority. Note that jackd will use aucat's block size as it's
> period size. The following command sequence could be used to run jackd
> over aucat.
>
> - $ aucat -l -b 1024 -z 1024
> + $ sndiod -b 1024 -z 1024
> $ sudo renice -20 `pgrep -x aucat`
> $ jackd -d sndio -p 1024 -n 2
>
this part slightly changed: aucat was renamed to sndiod and now is started
using rc.d(8). For instance:
--- README Mon Jan 23 23:42:37 2012
+++ README.new Mon Jan 23 23:55:48 2012
@@ -41,14 +41,15 @@ in 'jackd -d sndio -r 48000'.
The realtime option -R is commonly used on other operating systems.
However, this option is inconsequential on OpenBSD.
-It is possible to run jackd on top of aucat(1) with the 'sndio' driver.
-However, the aucat server must be running at a higher than default
-scheduling priority. Note that jackd will use aucat's block size as it's
-period size. The following command sequence could be used to run jackd
-over aucat.
+It is possible to run jackd on top of sndiod(1) with the 'sndio' driver.
+Note that jackd will use sndiod's block size as its period size. For
+instance:
- $ sndiod -b 1024 -z 1024
- $ sudo renice -20 `pgrep -x aucat`
- $ jackd -d sndio -p 1024 -n 2
+ - stop sndiod(8) using rc.d(8)
+ - set sndiod_flags="-b 1024 -z 512" in /etc/rc.conf.local(8)
+ - start sndiod(8)
+ - start jackd:
+
+ $ jackd -d sndio -p 1024 -n 2
There is currently no MIDI driver in jack that works on OpenBSD.
[...]
AFAICS, the sndio backend could be simplified (sndio changed) which
could make jack more stable. I don't have time for it right away, but
put it on my todo list; if someone uses jack a lot and is working on
it let me know. Jack is good software and worths the effort.
-- Alexandre