All of lore.kernel.org
 help / color / mirror / Atom feed
* jack plugin?
@ 2003-10-27 16:50 Florian Schmidt
  2003-10-28 11:34 ` Takashi Iwai
  0 siblings, 1 reply; 8+ messages in thread
From: Florian Schmidt @ 2003-10-27 16:50 UTC (permalink / raw)
  To: alsa-devel



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/

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: jack plugin?
  2003-10-27 16:50 jack plugin? Florian Schmidt
@ 2003-10-28 11:34 ` Takashi Iwai
  2003-10-28 18:11   ` Takashi Iwai
  0 siblings, 1 reply; 8+ messages in thread
From: Takashi Iwai @ 2003-10-28 11:34 UTC (permalink / raw)
  To: Florian Schmidt; +Cc: alsa-devel

At Mon, 27 Oct 2003 17:50:32 +0100,
Florian Schmidt wrote:
> 
> 
> 
> 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 :)

> 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/

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: jack plugin?
  2003-10-28 11:34 ` Takashi Iwai
@ 2003-10-28 18:11   ` Takashi Iwai
  2003-10-28 18:19     ` Takashi Iwai
  0 siblings, 1 reply; 8+ messages in thread
From: Takashi Iwai @ 2003-10-28 18:11 UTC (permalink / raw)
  To: Florian Schmidt; +Cc: alsa-devel

At Tue, 28 Oct 2003 12:34:42 +0100,
私 wrote:
> 
> At Mon, 27 Oct 2003 17:50:32 +0100,
> Florian Schmidt wrote:
> > 
> > 
> > 
> > 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 :)

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.


> > 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/

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: jack plugin?
  2003-10-28 18:11   ` Takashi Iwai
@ 2003-10-28 18:19     ` Takashi Iwai
  2003-10-28 20:06       ` Florian Schmidt
  0 siblings, 1 reply; 8+ messages in thread
From: Takashi Iwai @ 2003-10-28 18:19 UTC (permalink / raw)
  To: Florian Schmidt; +Cc: alsa-devel

At Tue, 28 Oct 2003 19:11:10 +0100,
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/

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: jack plugin?
  2003-10-28 18:19     ` Takashi Iwai
@ 2003-10-28 20:06       ` Florian Schmidt
  2003-10-28 23:37         ` Florian Schmidt
  0 siblings, 1 reply; 8+ messages in thread
From: Florian Schmidt @ 2003-10-28 20:06 UTC (permalink / raw)
  To: Takashi Iwai; +Cc: alsa-devel

On Tue, 28 Oct 2003 19:19:38 +0100
Takashi Iwai <tiwai@suse.de> 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/

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: jack plugin?
  2003-10-28 20:06       ` Florian Schmidt
@ 2003-10-28 23:37         ` Florian Schmidt
  2003-11-03 19:55           ` Florian Schmidt
  0 siblings, 1 reply; 8+ messages in thread
From: Florian Schmidt @ 2003-10-28 23:37 UTC (permalink / raw)
  To: Florian Schmidt; +Cc: tiwai, alsa-devel

On Tue, 28 Oct 2003 21:06:23 +0100
Florian Schmidt <mista.tapas@gmx.net> 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_refine
snd_pcm_jack_hw_refine
snd_pcm_jack_hw_refine
snd_pcm_jack_hw_refine
snd_pcm_jack_hw_refine
snd_pcm_jack_hw_refine
snd_pcm_jack_hw_refine
snd_pcm_jack_hw_refine
snd_pcm_jack_hw_refine
snd_pcm_jack_hw_refine
snd_pcm_jack_hw_params
snd_pcm_jack_sw_params
snd_pcm_jack_mmap
snd_pcm_jack_channel_info
snd_pcm_jack_channel_info
snd_pcm_jack_sw_params
snd_pcm_jack_sw_params
snd_pcm_jack_sw_params
snd_pcm_jack_prepare
snd_pcm_jack_sw_params
snd_pcm_jack_state
snd_pcm_jack_avail_update appl=0 hw=0 ret=24002
snd_pcm_jack_avail_update appl=0 hw=0 ret=24002
snd_pcm_jack_state
snd_pcm_jack_state
snd_pcm_jack_avail_update appl=5998 hw=0 ret=18004
snd_pcm_jack_avail_update appl=5998 hw=0 ret=18004
snd_pcm_jack_state
snd_pcm_jack_state
snd_pcm_jack_avail_update appl=11997 hw=0 ret=12005
snd_pcm_jack_avail_update appl=11997 hw=0 ret=12005
snd_pcm_jack_state
snd_pcm_jack_state
snd_pcm_jack_avail_update appl=17997 hw=0 ret=6005
snd_pcm_jack_avail_update appl=17997 hw=0 ret=6005
snd_pcm_jack_state
snd_pcm_jack_start
PROCESS 2! (256)
connected alsaP:out_000
 to alsa_pcm:playback_1
connected alsaP:out_001
 to alsa_pcm:playback_2
snd_pcm_jack_state
snd_pcm_jack_hwsync
snd_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=24002
jack_process = 256
snd_pcm_jack_poll_revents
snd_pcm_jack_hwsync
snd_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=24002
jack_process = 512
snd_pcm_jack_poll_revents
snd_pcm_jack_hwsync
snd_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=24002
jack_process = 768
snd_pcm_jack_poll_revents
snd_pcm_jack_hwsync
snd_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=24002
jack_process = 1024
snd_pcm_jack_poll_revents
snd_pcm_jack_hwsync
snd_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=24002
jack_process = 1280
snd_pcm_jack_poll_revents
snd_pcm_jack_hwsync
snd_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=24002
jack_process = 1536
snd_pcm_jack_poll_revents
snd_pcm_jack_hwsync
snd_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=24002
jack_process = 1792
snd_pcm_jack_poll_revents
snd_pcm_jack_hwsync
snd_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=24002
jack_process = 2048
snd_pcm_jack_poll_revents
snd_pcm_jack_hwsync
snd_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=24002
jack_process = 2304
snd_pcm_jack_poll_revents
snd_pcm_jack_hwsync
snd_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=24002
jack_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/

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: jack plugin?
  2003-10-28 23:37         ` Florian Schmidt
@ 2003-11-03 19:55           ` Florian Schmidt
  2003-11-07 17:30             ` Takashi Iwai
  0 siblings, 1 reply; 8+ messages in thread
From: Florian Schmidt @ 2003-11-03 19:55 UTC (permalink / raw)
  To: Florian Schmidt; +Cc: tiwai, alsa-devel

On Wed, 29 Oct 2003 00:37:39 +0100
Florian Schmidt <mista.tapas@gmx.net> 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/

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: jack plugin?
  2003-11-03 19:55           ` Florian Schmidt
@ 2003-11-07 17:30             ` Takashi Iwai
  0 siblings, 0 replies; 8+ messages in thread
From: Takashi Iwai @ 2003-11-07 17:30 UTC (permalink / raw)
  To: Florian Schmidt; +Cc: alsa-devel

At Mon, 3 Nov 2003 20:55:11 +0100,
Florian Schmidt wrote:
> 
> On Wed, 29 Oct 2003 00:37:39 +0100
> Florian Schmidt <mista.tapas@gmx.net> 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?

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/

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2003-11-07 17:30 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-10-27 16:50 jack plugin? Florian Schmidt
2003-10-28 11:34 ` Takashi Iwai
2003-10-28 18:11   ` Takashi Iwai
2003-10-28 18:19     ` Takashi Iwai
2003-10-28 20:06       ` Florian Schmidt
2003-10-28 23:37         ` Florian Schmidt
2003-11-03 19:55           ` Florian Schmidt
2003-11-07 17:30             ` Takashi Iwai

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.