README 2.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. $OpenBSD: README,v 1.6 2015/05/21 11:44:00 jca Exp $
  2. +-----------------------------------------------------------------------
  3. | Running ${FULLPKGNAME} on OpenBSD
  4. +-----------------------------------------------------------------------
  5. In this package of jackd, the 'dummy' and 'sndio' drivers are supported.
  6. The 'dummy' driver is mostly useful for testing jackd itself. The
  7. 'sndio' driver uses sndio(7). To start jackd with default driver
  8. parameters, use the command 'jackd -d <driver>'.
  9. By default, jackd runs in full-duplex mode with a relatively low
  10. latency. This may not be exactly what you want, and it may not be
  11. possible with all hardware. Therefore, some configuration options may
  12. be necessary to effectively use jackd. The 'sndio' driver options can
  13. be viewed with the command 'jackd -d sndio -h'. Below are some tips and
  14. caveats to consider when using jackd on OpenBSD.
  15. Some audio devices do not support full-duplex operation. If jackd
  16. errors out on startup with a message about opening a full-duplex device,
  17. this is likely the problem. If the device only supports playback, then
  18. the driver needs to be configured to use 0 input channels. For example
  19. 'jackd -d sndio -i 0' starts jackd in half-duplex play-only mode.
  20. By default jackd uses 2 periods (blocks) of 1024 frames each. This
  21. means there will be at most 2048 frames in the playback buffer. Some
  22. slower or loaded machines may not be able to keep the playback buffer
  23. from underrunning with these conditions. Jackd is designed to use 2
  24. periods, so if underruns are observed, it is best to first increase the
  25. period size with the driver's -p option. The period size should be a
  26. power of two. The number of periods can be increased with the -n
  27. option. For example, 'jackd -d sndio -p 2048 -n 4'.
  28. The sndio driver uses 44100 Hz sampling rates by default. Some devices
  29. may not support the default sample rate. Or it may be that most of the
  30. audio that will pass through jackd is based on a different sample rate.
  31. Avoiding sample rate conversion will use fewer CPU cycles and preserve
  32. audio quality. The -r option can be used to change the sampling rate as
  33. in 'jackd -d sndio -r 48000'.
  34. The realtime option -R is commonly used on other operating systems.
  35. However, this option is inconsequential on OpenBSD.
  36. It is possible to run jackd on top of sndiod(1) with the 'sndio' driver.
  37. Note that jackd will use sndiod's block size as its period size. For
  38. instance:
  39. - stop sndiod(8) using rc.d(8)
  40. - add the following to /etc/rc.conf.local(8):
  41. sndiod_flags=-b 1024 -z 512
  42. - start sndiod(8)
  43. - start jackd:
  44. $ jackd -d sndio -p 1024 -n 2
  45. There is currently no MIDI driver in jack that works on OpenBSD.