hi,
my os: ubuntu 10.4 pd-extended 0.42.5-rc4
when opening pd, no other application can use the soundcard. is pd able to use pulse? if not, what is the solution to not block other application from using the soundcard?
pat
i think the choices are alsa and jack. jack would be a good choice for everything. You can connect audio between applications, and even pulseaudio can send audio to jack. my pd version dont work well with jack, I dont know why. Maybe I did something wrong during instalation.
2010/7/26 patrick puredata@11h11.com
hi,
my os: ubuntu 10.4 pd-extended 0.42.5-rc4
when opening pd, no other application can use the soundcard. is pd able to use pulse? if not, what is the solution to not block other application from using the soundcard?
pat
Pd-list@iem.at mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list
Bernardo Barros wrote:
i think the choices are alsa and jack. jack would be a good choice for everything. You can connect audio between applications, and even pulseaudio can send audio to jack. my pd version dont work well with jack, I dont know why. Maybe I did something wrong during instalation.
I would second jack for getting the best performance, although setting up jack sink with pulseaudio can be a pain and jack will usually block applications which aren't jack-aware (browser etc.).
If really in desperate need of pd while some other audio is on you may do something as hacky as:
padsp pd[extended] -oss -audiobuf 80 -noadc
padsp is actually a pulseaudio OSS wrapper. Of course your mileage may vary... For example on my system I have to suppress audio input (-noadc) to have this working and bring latency up a bit.
Ciao, Lorenzo.
2010/7/26 patrick <puredata@11h11.com mailto:puredata@11h11.com>
hi, my os: ubuntu 10.4 pd-extended 0.42.5-rc4 when opening pd, no other application can use the soundcard. is pd able to use pulse? if not, what is the solution to not block other application from using the soundcard? pat _______________________________________________ Pd-list@iem.at <mailto:Pd-list@iem.at> mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list
Pd-list@iem.at mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list
ej pat i was hasseling around with this too - so due to my research there're two ways to sail round this - basically you have to route your applications using pulseaudio or alsa thru jack. the other day i was using the jack with alsa layout but currently i'm running the version jack with pulseaudio though with this layout pulseaudio gets kicked out ev'ry now & then...
_____jack with pulseaudio sudo aptitude install pulseaudio-module-jack
execute this (i put this in my jack options in the 'Execute script on startup' section) pulseaudio --kill && sleep 2 && pulseaudio --start -n --fail -F /home/olsen/.pulse/jackd.pa also on the mentioned kickouts execute this line again - i do not remember where the jackd.pa file came frome just in case i attached it!
_____jack with alsa think this can be skipped in 10.04
sudo apt-get source libjack0 cd jack-audio-connection-kit-0.116.1 configure & make cp ./drivers/alsa/.libs/jack_alsa.so /usr/lib/jack/
put the following in a .asoundrc file in your homedirectory from http://alsa.opensrc.org/index.php/Jack_%28plugin%29:
pcm.!default { type plug slave { pcm "jack" }
hint {
show on
description "My default"
}
}
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.mixer0 { type hw card 0 }
hope this helps ø
On 07/27/2010 09:43 AM, Lorenzo wrote:
Bernardo Barros wrote:
i think the choices are alsa and jack. jack would be a good choice for everything. You can connect audio between applications, and even pulseaudio can send audio to jack. my pd version dont work well with jack, I dont know why. Maybe I did something wrong during instalation.
I would second jack for getting the best performance, although setting up jack sink with pulseaudio can be a pain and jack will usually block applications which aren't jack-aware (browser etc.).
If really in desperate need of pd while some other audio is on you may do something as hacky as:
padsp pd[extended] -oss -audiobuf 80 -noadc
padsp is actually a pulseaudio OSS wrapper. Of course your mileage may vary... For example on my system I have to suppress audio input (-noadc) to have this working and bring latency up a bit.
Ciao, Lorenzo.
2010/7/26 patrick <puredata@11h11.com mailto:puredata@11h11.com>
hi,
my os: ubuntu 10.4 pd-extended 0.42.5-rc4
when opening pd, no other application can use the soundcard. is pd able to use pulse? if not, what is the solution to not block other application from using the soundcard?
pat
Pd-list@iem.at mailto:Pd-list@iem.at mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list
Pd-list@iem.at mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list
Pd-list@iem.at mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list
hi,
the application that i am using is not jack compatible (simon (voice recognition)). so when starting puredata, i cannot use simon (or any other application that use pulseaudio (firefox, vlc, etc...)).
i know nothing about the audio guts of pd, but would it be possible to integrate pulseaudio directly to pd? again i don't know the implication of my request:
http://0pointer.de/lennart/projects/pulseaudio/doxygen/pacat-simple_8c-examp... http://0pointer.de/lennart/projects/pulseaudio/doxygen/parec-simple_8c-examp...
pat
Hi Pat
Probably it didn't get through, but if I'm understanding Olsen correctly, his proposal was to route the whole pulseaudio traffic through jack (a.k.a using jack as a backend of pulseaudio). This way pulseaudio shows up as a client in jack (for reading and for writing) and this way you can connect any application, that uses puslseaudio with pd. That is what I am doing here as well. Check Olsen's mail for more details on how to set up.
Roman
On Wed, 2010-07-28 at 10:58 +0900, patrick wrote:
hi,
the application that i am using is not jack compatible (simon (voice recognition)). so when starting puredata, i cannot use simon (or any other application that use pulseaudio (firefox, vlc, etc...)).
i know nothing about the audio guts of pd, but would it be possible to integrate pulseaudio directly to pd? again i don't know the implication of my request:
http://0pointer.de/lennart/projects/pulseaudio/doxygen/pacat-simple_8c-examp... http://0pointer.de/lennart/projects/pulseaudio/doxygen/parec-simple_8c-examp...
pat
Pd-list@iem.at mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list
sorry olsen, i didn't see your email. thank you, very useful information! i will try your solution asap and report back.
sorry for the noise, pat
Hi all --
I haven't tested this, but if it doesn't work I should try to fix...
invoke "pd -aldaadd default" and the "default" device that shows up should be pulseaudio. (I've disabled pulseaudio on all my machines and can't test this right now, sorry)
If not running pd from command line, add "-aldaadd default" to "startup flags" in the "startup" preferences dialog. Miller
On Wed, Jul 28, 2010 at 05:46:01PM +0900, patrick wrote:
sorry olsen, i didn't see your email. thank you, very useful information! i will try your solution asap and report back.
sorry for the noise, pat
Pd-list@iem.at mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list
Hi Miller,
I would like to test it, but i am not sure which version should i compile. I tried the svn (where externals are) and when launching pd only a gray window appear: tcl: /home/psc/src/pd/pd/bin/pd.tk: can't open script invalid command name "pdtk_post"
Then, i tried the git version, but there's no configure in src.
autogen.sh: configure.ac:84: required file `../ltmain.sh' not found autoreconf: automake failed with exit status: 1
./configure: config.status: error: cannot find input file: `Makefile.in'
pat
Me, I do:
cd src; autoconf; ./configure [--enable-jack] [etc]; make
There's another(Hans's) make system for which one CDs just to the pd directory, types "./autogen.sh && ./cofigure & make"
Somehow they both coexist in the same source tree...
http://puredata.info/dev/PdGuiRewrite
cheers Miller
On Thu, Jul 29, 2010 at 12:38:34AM +0900, patrick wrote:
Hi Miller,
I would like to test it, but i am not sure which version should i compile. I tried the svn (where externals are) and when launching pd only a gray window appear: tcl: /home/psc/src/pd/pd/bin/pd.tk: can't open script invalid command name "pdtk_post"
Then, i tried the git version, but there's no configure in src.
autogen.sh: configure.ac:84: required file `../ltmain.sh' not found autoreconf: automake failed with exit status: 1
./configure: config.status: error: cannot find input file: `Makefile.in'
pat
Pd-list@iem.at mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list
ok, here's the result of my testing:
git clone git://pure-data.git.sourceforge.net/gitroot/pure-data/pure-data cd pure-data/src && autoconf && configure --enable-alsa --enable-jack && make cd ../bin ./pd -rt -alsa -alsaadd default
go to Media, Preferences, Audio Settings... Input device 1: choose default Output device 1: there's no default here, only (hardware/plug-in), ah ok now there's one but named \x95!\x19
I now see pd in PulseAudio Volume Control: Alsa plug-in [pd]
but not for long: tried but couldn't sync A/D/A tried but couldn't sync A/D/A tried but couldn't sync A/D/A audio I/O stuck... closing audio
if not using -rt, i can hear some audio, but very glitchy for about 15 seconds. same error.
anyone can test out, maybe it's my setup! pat
hello, with pulse audio, it help a lot if you remove audio input...
on my setup (ubuntu 10.04, no change in ubuntu audio configuration, pd 0.42 vanilla) : pd -rt -alsa -alsaadd default -audiooutdev 3 -noadc -audiobuf 50 result in pd to output as a pulsaudio application. it work fine.
i've got the same problem about the name of the audio out device.
without -noadc, i have the same problem : audio I/O stuck.
Cyrille
Le 28/07/2010 18:12, patrick a écrit :
ok, here's the result of my testing:
git clone git://pure-data.git.sourceforge.net/gitroot/pure-data/pure-data cd pure-data/src && autoconf && configure --enable-alsa --enable-jack && make cd ../bin ./pd -rt -alsa -alsaadd default
go to Media, Preferences, Audio Settings... Input device 1: choose default Output device 1: there's no default here, only (hardware/plug-in), ah ok now there's one but named \x95!\x19
I now see pd in PulseAudio Volume Control: Alsa plug-in [pd]
but not for long: tried but couldn't sync A/D/A tried but couldn't sync A/D/A tried but couldn't sync A/D/A audio I/O stuck... closing audio
if not using -rt, i can hear some audio, but very glitchy for about 15 seconds. same error.
anyone can test out, maybe it's my setup! pat
Pd-list@iem.at mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list
hi cyrille,
it works! with pd extended, pd vanilla, pd from git.
thx, pat
hi olsen,
it almost works, vlc gets "jacked", firefox, pd no problem. but the main application i am trying to use with pd is simon, and this application is not able to make the bridge to jack. i don't know exactly why, in the configuration of audio is all about pulse, so in theory it should work... but like i said, i don't see simon listed in qjackctl audio.
my last hope: -alsaadd default
pat
On Thu, 2010-07-29 at 00:36 +0900, patrick wrote:
hi olsen,
it almost works, vlc gets "jacked", firefox, pd no problem. but the main application i am trying to use with pd is simon, and this application is not able to make the bridge to jack.
If you go for the 'route-all-pulseaudio-to-jack' way, then you won't see all the pulseaudio clients listed in qjackctl, but only 'PulseAudio Jack Sink' as readable client and 'PulseAudio Jack Source' as writeable client. All pulseaudio applications will be routed through this ports.
Roman
Hi Roman,
I didn't have PulseAudio Jack Sink / Source listed. I found this tutorial: http://www.linuxmao.org/tikiwiki/tiki-index.php?page=pulseaudio+vers+jack
and now everything is working!
a startup script for qjackctl: #!/bin/bash pactl load-module module-jack-sink pactl load-module module-jack-source
that's it! pat