jack plugin?
Hi,
i tried to install and use the jack plugin [alsa-lib]. I failed. Here's what i did.
1.] tried to build alsa-lib with ./configure --with-jack. It accepted the configure parameter, but didn't build or install the jack plugin upon make; make install
2.] tried to go directly to alsa-lib/src/pcm/ext/ and buildt the plugin manually. seemingly succeeded, but make install-jack failed with this error:
tapas@mango:~/Source/BuildStuff/alsa-lib-0.9.8/src/pcm/ext$ sudo make install-jack /bin/sh ../../../mkinstalldirs /usr/lib/alsa-lib /bin/sh ../../../libtool --mode=install libasound_module_pcm_jack.la /usr/lib/alsa-lib/libasound_module_pcm_jack.la libtool: install: you must specify a destination Try `libtool --help --mode=install' for more information. make: *** [install-jack] Error 1
I then found the shared object in
src/pcm/ext/.lib
and copied it manually to /usr/lib/alsa-lib
then i added an entry to my .asoundrc:
pcm.jackplug {
type plug
slave { pcm "jack" }
}pcm.jack {
type jack
playback_ports {
0 alsa_pcm:playback_1
1 alsa_pcm:playback_2
}
capture_ports {
0 alsa_pcm:capture_1
1 alsa_pcm:capture_2
}
}ctl.jack {
type hw
card 0
}
but aplay still complained about missing the shred lib. It seemingly expected it to be in /usr/local/lib/alsa-lib. So i moved it there and tried again. Now aplay crashes with a segfault:
tapas@mango:~/Source/BuildStuff/alsa-lib-0.9.8/src/pcm/ext$ aplay -D jack foo.wav snd_pcm_jack_open Segmentation fault
Regards, Florian Schmidt
-------------------------------------------------------
This SF.net email is sponsored by: The SF.net Donation Program. Do you like what SourceForge.net is doing for the Open Source Community? Make a contribution, and help us add new features and functionality. Click here: http://sourceforge.net/donate/
At Mon, 27 Oct 2003 17:50:32 +0100,
Quoted 11 lines · Florian Schmidt
Hi,
i tried to install and use the jack plugin [alsa-lib]. I failed. Here's what i did.
1.] tried to build alsa-lib with ./configure --with-jack. It accepted the configure parameter, but didn't build or install the jack plugin upon make; make install
oh, a clear bug :)
Quoted 3 lines
2.] tried to go directly to alsa-lib/src/pcm/ext/ and buildt the plugin manually. seemingly succeeded, but make install-jack failed with this error:
well, i've not tested this plugin for a long time. ok, now is the good time to debug...
Takashi
-------------------------------------------------------
This SF.net email is sponsored by: The SF.net Donation Program. Do you like what SourceForge.net is doing for the Open Source Community? Make a contribution, and help us add new features and functionality. Click here: http://sourceforge.net/donate/
At Tue, 28 Oct 2003 12:34:42 +0100,
Quoted 8 lines · 私 wrote:
At Mon, 27 Oct 2003 17:50:32 +0100,
Quoted 5 lines · Florian Schmidt
Hi,
Quoted 8 lines
Quoted 6 lines
i tried to install and use the jack plugin [alsa-lib]. I failed. Here's what i did.
1.] tried to build alsa-lib with ./configure --with-jack. It accepted the configure parameter, but didn't build or install the jack plugin upon make; make install
oh, a clear bug :)
let me correct myself:
it's not a bug at all. also, --with-jack option was removed now.
to compile and install jack, you need to move to src/pcm/ext directory, and run "make jack" and "make install-jack". this is intentional.
Quoted 6 lines
Quoted 3 lines
2.] tried to go directly to alsa-lib/src/pcm/ext/ and buildt the plugin manually. seemingly succeeded, but make install-jack failed with this error:
well, i've not tested this plugin for a long time. ok, now is the good time to debug...
it works for me, at least.
now fun part. playing with this one. i'll report later on.
Takashi
-------------------------------------------------------
This SF.net email is sponsored by: SF.net Giveback Program. Does SourceForge.net help you be more productive? Does it
help you create better code? SHARE THE LOVE, and help us help
YOU! Click Here: http://sourceforge.net/donate/
At Tue, 28 Oct 2003 19:11:10 +0100,
Quoted 2 lines · I wrote:
now fun part. playing with this one. i'll report later on.
also works for me (although bunch of debug messages appear - fixed on cvs now).
sorry, your problem is not reproducable on my machine. possibly depending on JACK version?
Takashi
-------------------------------------------------------
This SF.net email is sponsored by: SF.net Giveback Program. Does SourceForge.net help you be more productive? Does it
help you create better code? SHARE THE LOVE, and help us help
YOU! Click Here: http://sourceforge.net/donate/
Quoted 6 lines · On Tue, 28 Oct 2003 19:19:38 +0100 Takashi Iwai <[email protected]> wrote:
also works for me (although bunch of debug messages appear - fixed on cvs now).
sorry, your problem is not reproducable on my machine. possibly depending on JACK version?
Hmm, let me ask some questions, then i can maybe give a better report afterwards?
What formats are alsa-plugins usually? [.so, .sa]
What format is used by the jack plugin
Which paths does libalsa look at when loading a plugin?
How does the makefile of the jack plugin determine, where the plug goes?
Regards
Florian Schmidt
-------------------------------------------------------
This SF.net email is sponsored by: SF.net Giveback Program. Does SourceForge.net help you be more productive? Does it
help you create better code? SHARE THE LOVE, and help us help
YOU! Click Here: http://sourceforge.net/donate/
Quoted 6 lines · On Tue, 28 Oct 2003 21:06:23 +0100 Florian Schmidt <[email protected]> wrote:
What formats are alsa-plugins usually? [.so, .sa]
What format is used by the jack plugin
Which paths does libalsa look at when loading a plugin? How does the makefile of the jack plugin determine, where the plug goes?
I found out that i had two alsa-versions installed [bad]. Ok, i still get the same error with:
make install-jack
but i copied it manually to
/usr/lib/alsa-lib
and i got aplay to play over it [using the jackplug as defined in the example .asoundrc]. But here the sound is heavily distorted [sounds like constant buffer underruns] and produces loads of text like this[1]:
I also could set the alsa outputplugin of xmms to jackplug, and it seemed to play. at first it played silence and then after some tries it played noise [a humming noise]..
[1]
tapas@mango:~$ aplay -D jackplug foo.wav snd_pcm_jack_open snd_pcm_jack_info Playing WAVE 'foo.wav' : Signed 16 bit Little Endian, Rate 22050 Hz, Stereo snd_pcm_jack_hw_refine snd_pcm_jack_hw_refine snd_pcm_jack_hw_refine snd_pcm_jack_hw_refine
...
[snipped some of these]
...
snd_pcm_jack_hw_refinesnd_pcm_jack_hw_refinesnd_pcm_jack_hw_refinesnd_pcm_jack_hw_refinesnd_pcm_jack_hw_refinesnd_pcm_jack_hw_refinesnd_pcm_jack_hw_refinesnd_pcm_jack_hw_refinesnd_pcm_jack_hw_refinesnd_pcm_jack_hw_refinesnd_pcm_jack_hw_paramssnd_pcm_jack_sw_paramssnd_pcm_jack_mmapsnd_pcm_jack_channel_infosnd_pcm_jack_channel_infosnd_pcm_jack_sw_paramssnd_pcm_jack_sw_paramssnd_pcm_jack_sw_paramssnd_pcm_jack_preparesnd_pcm_jack_sw_paramssnd_pcm_jack_statesnd_pcm_jack_avail_update appl=0 hw=0 ret=24002 snd_pcm_jack_avail_update appl=0 hw=0 ret=24002 snd_pcm_jack_statesnd_pcm_jack_statesnd_pcm_jack_avail_update appl=5998 hw=0 ret=18004 snd_pcm_jack_avail_update appl=5998 hw=0 ret=18004 snd_pcm_jack_statesnd_pcm_jack_statesnd_pcm_jack_avail_update appl=11997 hw=0 ret=12005 snd_pcm_jack_avail_update appl=11997 hw=0 ret=12005 snd_pcm_jack_statesnd_pcm_jack_statesnd_pcm_jack_avail_update appl=17997 hw=0 ret=6005 snd_pcm_jack_avail_update appl=17997 hw=0 ret=6005 snd_pcm_jack_statesnd_pcm_jack_start
PROCESS 2! (256)
connected alsaP:out_000
to alsa_pcm:playback_1
connected alsaP:out_001
to alsa_pcm:playback_2snd_pcm_jack_statesnd_pcm_jack_hwsyncsnd_pcm_jack_avail_update appl=23996 hw=0 ret=6
PROCESS 3! (256)snd_pcm_jack_process_cb hw=0=0 + nframes=256 / frames=256 / bufsize=24002jack_process = 256snd_pcm_jack_poll_reventssnd_pcm_jack_hwsyncsnd_pcm_jack_avail_update appl=23996 hw=256 ret=262 PROCESS 3! (256)snd_pcm_jack_process_cb hw=256=256 + nframes=256 / frames=256 / bufsize=24002jack_process = 512snd_pcm_jack_poll_reventssnd_pcm_jack_hwsyncsnd_pcm_jack_avail_update appl=23996 hw=512 ret=518 PROCESS 3! (256)snd_pcm_jack_process_cb hw=512=512 + nframes=256 / frames=256 / bufsize=24002jack_process = 768snd_pcm_jack_poll_reventssnd_pcm_jack_hwsyncsnd_pcm_jack_avail_update appl=23996 hw=768 ret=774 PROCESS 3! (256)snd_pcm_jack_process_cb hw=768=768 + nframes=256 / frames=256 / bufsize=24002jack_process = 1024snd_pcm_jack_poll_reventssnd_pcm_jack_hwsyncsnd_pcm_jack_avail_update appl=23996 hw=1024 ret=1030 PROCESS 3! (256)snd_pcm_jack_process_cb hw=1024=1024 + nframes=256 / frames=256 / bufsize=24002jack_process = 1280snd_pcm_jack_poll_reventssnd_pcm_jack_hwsyncsnd_pcm_jack_avail_update appl=23996 hw=1280 ret=1286 PROCESS 3! (256)snd_pcm_jack_process_cb hw=1280=1280 + nframes=256 / frames=256 / bufsize=24002jack_process = 1536snd_pcm_jack_poll_reventssnd_pcm_jack_hwsyncsnd_pcm_jack_avail_update appl=23996 hw=1536 ret=1542 PROCESS 3! (256)snd_pcm_jack_process_cb hw=1536=1536 + nframes=256 / frames=256 / bufsize=24002jack_process = 1792snd_pcm_jack_poll_reventssnd_pcm_jack_hwsyncsnd_pcm_jack_avail_update appl=23996 hw=1792 ret=1798 PROCESS 3! (256)snd_pcm_jack_process_cb hw=1792=1792 + nframes=256 / frames=256 / bufsize=24002jack_process = 2048snd_pcm_jack_poll_reventssnd_pcm_jack_hwsyncsnd_pcm_jack_avail_update appl=23996 hw=2048 ret=2054 PROCESS 3! (256)snd_pcm_jack_process_cb hw=2048=2048 + nframes=256 / frames=256 / bufsize=24002jack_process = 2304snd_pcm_jack_poll_reventssnd_pcm_jack_hwsyncsnd_pcm_jack_avail_update appl=23996 hw=2304 ret=2310 PROCESS 3! (256)snd_pcm_jack_process_cb hw=2304=2304 + nframes=256 / frames=256 / bufsize=24002jack_process = 2560
-------------------------------------------------------
This SF.net email is sponsored by: SF.net Giveback Program. Does SourceForge.net help you be more productive? Does it
help you create better code? SHARE THE LOVE, and help us help
YOU! Click Here: http://sourceforge.net/donate/
Quoted 8 lines · On Wed, 29 Oct 2003 00:37:39 +0100 Florian Schmidt <[email protected]> wrote:
and i got aplay to play over it [using the jackplug as defined in the example .asoundrc]. But here the sound is heavily distorted [sounds like constant buffer underruns] and produces loads of text like this[1]:
I also could set the alsa outputplugin of xmms to jackplug, and it seemed to play. at first it played silence and then after some tries it played noise [a humming noise]..
One last thought on the issue [couldn't get it to work reliable]. I have jack installed in /usr/local while all the alsa stuff i put into /usr. Could this be part of the problem?
FLorian Schmidt
-------------------------------------------------------
This SF.net email is sponsored by: SF.net Giveback Program. Does SourceForge.net help you be more productive? Does it
help you create better code? SHARE THE LOVE, and help us help
YOU! Click Here: http://sourceforge.net/donate/
At Mon, 3 Nov 2003 20:55:11 +0100,
Quoted 9 lines · Florian Schmidt
Quoted 5 lines · On Wed, 29 Oct 2003 00:37:39 +0100 Florian Schmidt <[email protected]> wrote:
and i got aplay to play over it [using the jackplug as defined in the example .asoundrc]. But here the sound is heavily distorted [sounds like constant buffer underruns] and produces loads of text like this[1]:
Quoted 8 lines
Quoted 3 lines
I also could set the alsa outputplugin of xmms to jackplug, and it seemed to play. at first it played silence and then after some tries it played noise [a humming noise]..
One last thought on the issue [couldn't get it to work reliable]. I have jack installed in
/usr/localwhile all the alsa stuff i put into /usr. Could this be part of the problem?
well, i've not tested this plugin intensively at all. i just checked to configure, install and aplay with it. most likely it's still buggy in some manner :)
Takashi
-------------------------------------------------------
This SF.Net email sponsored by: ApacheCon 2003, 16-19 November in Las Vegas. Learn firsthand the latest developments in Apache, PHP, Perl, XML, Java, MySQL, WebDAV, and more! http://www.apachecon.com/