root@voyage:~# cat JACKED2
#! /bin/bash
# This is ridiculous:
export DISPLAY=:0
# dbus-launch started, DBUS_SESSION_BUS_ADDRESS exported:
export `dbus-launch | grep ADDRESS`
# dbus-launch started, DBUS_SESSION_BUS_PID exported
export `dbus-launch | grep PID`
#jackd -dalsa -dhw:0 -r192000 > ~/.log/jack.log 2>&1
/usr/bin/jackd -P89 -p128 -m -dalsa -r192000 -p128 -n2 -P -o2 -O2 &
このスクリプトで起動はできますが
# ./JACKED2
root@voyage:~# jackdmp 1.9.9
Copyright 2001-2005 Paul Davis and others.
Copyright 2004-2012 Grame.
jackdmp 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 server starting in realtime mode with priority 89
control device hw:0
control device hw:0
audio_reservation_init
Acquire audio card Audio0
creating alsa driver ... hw:0|-|128|2|192000|0|2|nomon|swmeter|-|32bit
control device hw:0
configuring for 192000Hz, period = 128 frames (0.7 ms), buffer = 2 periods
ALSA: final selected sample format for playback: 32bit integer little-endian
ALSA: use 2 periods for playback
mpcで接続が上手くいきません。なので音も出ません。何が悪いのでしょうか?
mpcのエラーはデバイスをオープン出来ないと出ます。
もちろん/etc/mpd.confにはjackの項を加えています。
ここが参考にならないかと…
http://web1.kcn.jp/haruem/Ubuntu_jack_mpd.html" target="_blank">http://web1.kcn.jp/haruem/Ubuntu_jack_mpd.html