Re: [pulseaudio-discuss] Help in setting up PA... SOLVED

2008-06-02 Thread Juan A Fuentes Bermudez
1) Tell me which cards are identified by the alsamixer and which cards are 
identified by pa(pulseaudio).

asoundconf list
Names of available sound cards:
NVidia (identified by PA)
HDMI
EWX2496
E192M (identified by PA)


aplay -l
 Lista de PLAYBACK Dispositivos Hardware 
tarjeta 0: NVidia [HDA NVidia], dispositivo 0: AD198x Analog [AD198x Analog]
  Subdispositivos: 1/1
  Subdispositivo #0: subdevice #0
tarjeta 0: NVidia [HDA NVidia], dispositivo 1: AD198x Digital [AD198x Digital]
  Subdispositivos: 1/1
  Subdispositivo #0: subdevice #0
tarjeta 1: HDMI [HDA ATI HDMI], dispositivo 3: ATI HDMI [ATI HDMI]
  Subdispositivos: 1/1
  Subdispositivo #0: subdevice #0
tarjeta 2: EWX2496 [TerraTec EWX24/96], dispositivo 0: ICE1712 multi [ICE1712 
multi]
  Subdispositivos: 1/1
  Subdispositivo #0: subdevice #0
tarjeta 3: E192M [ESI Waveterminal 192M], dispositivo 0: ICE1724 [ICE1724]
  Subdispositivos: 1/1
  Subdispositivo #0: subdevice #0
tarjeta 3: E192M [ESI Waveterminal 192M], dispositivo 1: ICE1724 Secondary 
[ICE1724 Secondary]
  Subdispositivos: 1/1
  Subdispositivo #0: subdevice #0
tarjeta 3: E192M [ESI Waveterminal 192M], dispositivo 2: ICE1724 Surrounds 
[ICE1724 Surround PCM]
  Subdispositivos: 3/3
  Subdispositivo #0: subdevice #0
  Subdispositivo #1: subdevice #1
  Subdispositivo #2: subdevice #2


2) Can you make sound with your speakers with pa and the cards that it does 
identify?
yes i need to route the sound thru the no identified sound cards via PA

when i por example, play a mp3, i can route via alsa the sound thru devices 
that no identified in PA, i am sure that card is runing correctly


sorry and very thank 

___
pulseaudio-discuss mailing list
pulseaudio-discuss@mail.0pointer.de
https://tango.0pointer.de/mailman/listinfo/pulseaudio-discuss


Re: [pulseaudio-discuss] Help in setting up PA... SOLVED

2008-06-02 Thread Richard Geddes
1) Tell me which cards are identified by the alsamixer and which cards 
are identified by pa(pulseaudio).
2) Can you make sound with your speakers with pa and the cards that it 
does identify?


Juan A Fuentes Bermudez wrote:


I'll try to help...
thank


1) You have 4 sound cards in one computer... yes?
yes

2) the alsamixer can identify all 4 cards.
yes

3) The padevchooser identifies 2 cards
yes

4) You want pulseaudio to identify all 4 cards
yes,

--
If this sounds correct, I would start by getting hardware
information about your cards. 
ok, cards:

1. esi waveterminal 192m, ice1724
2. terratek ewx24/96, ice1712
3 hdmi ati, (integrated in my vga card)
4. soundmax 1988b, ad198x
 
 
Are you familiar with CLI (command line interface)... ie how to

use a shell in linux?  or do you use the GUI (Grahpical User
Interface) only? 
yes, i am use command line and gui,

I'm asking this so I can explain better.
 


very tahnk you for your interest

 
 
 
 



Juan A Fuentes Bermudez wrote:

hi, sorry for my english
 
i have 4 sound card
 
in the alsamixer  i can choice the 4 card to change parameters
 
but when in the padevchooser i an click in te default sink only

apears 2 card
 
i use ubuntu hardy, with the default default.pa with hall_detect

and detect module active
 
how can list exact name of alsa devices to add module_alsa  whit

the correspond name of my 4 devices manually?
 
sorry bye
 


- Original Message -
*From:* Richard Geddes 
*To:* General PulseAudio Discussion

*Sent:* Monday, June 02, 2008 3:34 PM
*Subject:* Re: [pulseaudio-discuss] Help in setting up PA...
SOLVED

Hi,

I'm back again.  I upgraded to Ubuntu 8.04 which uses PA as
the default sound server and new hardware(AMD Athlon X2)  The
PA server is version 0.9.10.  My /etc/default.pa looks like this:

.nofail
load-sample-lazy pulse-hotplug /usr/share/sounds/startup3.wav
.fail
load-module module-alsa-sink sink_name=intel_hda_out device=hw:0
load-module module-alsa-source source_name=intel_hda_in
device=hw:0
load-module module-alsa-sink sink_name=delta_out device=hw:1
channels=10
channel_map=left,right,aux0,aux1,aux2,aux3,aux4,aux5,aux6,aux7
load-module module-alsa-source source_name=delta_in
device=hw:1 channels=12
channel_map=left,right,aux0,aux1,aux2,aux3,aux4,aux5,aux6,aux7,aux8,aux9
set-default-sink delta_out
set-default-source delta_in
.ifexists module-esound-protocol-unix.so
load-module module-esound-protocol-unix
.endif
load-module module-native-protocol-unix
load-module module-volume-restore
load-module module-default-device-restore
load-module module-rescue-streams
load-module module-suspend-on-idle
.ifexists module-gconf.so
.nofail
load-module module-gconf
.fail
.endif
.ifexists module-x11-publish.so
.nofail
load-module module-x11-publish
.fail
.endif

To get feedback from the PA server I used paman (pulseaudio
sound manager in ubuntu) and it said that the intel_hda_out
device is the default sink.  I tried to force the default
sink to be delta_out with pacmd, but that stopped the PA
server... I didn't realize that when I exit paman, it shuts
the pa server down.  I was a little confused by that...
expecting the server to stay alive.

I noticed that I could "play-sample" to the delta_out and it
sounded fine.  It looked like I can get my Delta 66 card and
PA to work but only in that "play-sample" mode. 


I did not realize that I had the volume-restore enabled, and
it had quite a few settings from the past that were all
related to intel_hda_out... also my ~/.pulse/default-sink
file was also set to intel_hda_out... anyway even though the
global config file(/etc/pulse/default.pa) set the default
sink to delta_out, there are local config files in ~/.pulse/
that can also modify the defaults.  It's probably in the
literature somewhere, and it makes sense for clients that are
sharing a server.

Anyway, I after changing *all* (local and global) the config
files, the system works... and pretty well.  Hope this helps
someone with their M-Audio Delta setup.

R

Tanu Kaskinen wrote:

On Fri, Feb 01, 2008 at 03:02:40PM -0500, Richard Geddes wrote:
  
You are correct... latest release Ubuntu 7.10 comes with PA 0.9.6.  

Re: [pulseaudio-discuss] Help in setting up PA... SOLVED

2008-06-02 Thread Juan A Fuentes Bermudez

I'll try to help... 
thank 

  1) You have 4 sound cards in one computer... yes?
  yes

  2) the alsamixer can identify all 4 cards.
  yes

  3) The padevchooser identifies 2 cards
  yes

  4) You want pulseaudio to identify all 4 cards
  yes, 

  --
  If this sounds correct, I would start by getting hardware information about 
your cards.  
  ok, cards:
  1. esi waveterminal 192m, ice1724
  2. terratek ewx24/96, ice1712
  3 hdmi ati, (integrated in my vga card)
  4. soundmax 1988b, ad198x


  Are you familiar with CLI (command line interface)... ie how to use a shell 
in linux?  or do you use the GUI (Grahpical User Interface) only?  
  yes, i am use command line and gui,

  I'm asking this so I can explain better.

  very tahnk you for your interest 








  Juan A Fuentes Bermudez wrote: 
hi, sorry for my english 

i have 4 sound card

in the alsamixer  i can choice the 4 card to change parameters 

but when in the padevchooser i an click in te default sink only apears 2 
card

i use ubuntu hardy, with the default default.pa with hall_detect and detect 
module active

how can list exact name of alsa devices to add module_alsa  whit the 
correspond name of my 4 devices manually?

sorry bye 

  - Original Message - 
  From: Richard Geddes 
  To: General PulseAudio Discussion 
  Sent: Monday, June 02, 2008 3:34 PM
  Subject: Re: [pulseaudio-discuss] Help in setting up PA... SOLVED


  Hi,

  I'm back again.  I upgraded to Ubuntu 8.04 which uses PA as the default 
sound server and new hardware(AMD Athlon X2)  The PA server is version 0.9.10.  
My /etc/default.pa looks like this:

  .nofail
  load-sample-lazy pulse-hotplug /usr/share/sounds/startup3.wav
  .fail
  load-module module-alsa-sink sink_name=intel_hda_out device=hw:0
  load-module module-alsa-source source_name=intel_hda_in device=hw:0
  load-module module-alsa-sink sink_name=delta_out device=hw:1 channels=10 
channel_map=left,right,aux0,aux1,aux2,aux3,aux4,aux5,aux6,aux7
  load-module module-alsa-source source_name=delta_in device=hw:1 
channels=12 
channel_map=left,right,aux0,aux1,aux2,aux3,aux4,aux5,aux6,aux7,aux8,aux9
  set-default-sink delta_out 
  set-default-source delta_in
  .ifexists module-esound-protocol-unix.so
  load-module module-esound-protocol-unix
  .endif
  load-module module-native-protocol-unix
  load-module module-volume-restore
  load-module module-default-device-restore
  load-module module-rescue-streams
  load-module module-suspend-on-idle
  .ifexists module-gconf.so
  .nofail
  load-module module-gconf
  .fail
  .endif
  .ifexists module-x11-publish.so
  .nofail
  load-module module-x11-publish
  .fail
  .endif

  To get feedback from the PA server I used paman (pulseaudio sound manager 
in ubuntu) and it said that the intel_hda_out device is the default sink.  I 
tried to force the default sink to be delta_out with pacmd, but that stopped 
the PA server... I didn't realize that when I exit paman, it shuts the pa 
server down.  I was a little confused by that... expecting the server to stay 
alive.

  I noticed that I could "play-sample" to the delta_out and it sounded 
fine.  It looked like I can get my Delta 66 card and PA to work but only in 
that "play-sample" mode.  

  I did not realize that I had the volume-restore enabled, and it had quite 
a few settings from the past that were all related to intel_hda_out... also my 
~/.pulse/default-sink file was also set to intel_hda_out... anyway even though 
the global config file(/etc/pulse/default.pa) set the default sink to 
delta_out, there are local config files in ~/.pulse/ that can also modify the 
defaults.  It's probably in the literature somewhere, and it makes sense for 
clients that are sharing a server.

  Anyway, I after changing *all* (local and global) the config files, the 
system works... and pretty well.  Hope this helps someone with their M-Audio 
Delta setup.

  R

  Tanu Kaskinen wrote: 
On Fri, Feb 01, 2008 at 03:02:40PM -0500, Richard Geddes wrote:
  You are correct... latest release Ubuntu 7.10 comes with PA 0.9.6.  
I'll look into getting the latest version of PA.

My goal was to use PA as a replacement for esound server...  I'd like to
be able to record/mix different sound sources (midi, analog, sound from
files (mp3, wav, ogg, etc)) and be able to create different file
formats, including sound delivered in flash (I'm not a fan of flash as
it consumes alot of cpu time, but it is in demand).  I played with jackd
for a while and was impressed with it's technical capabilities, but
unfortunately, I haven't found a way to play flash sound through
jackd... that is, flash in firefox.  I found a how-to in the Ubuntu
forum that seemed to patch together a solution the involved PA:

http://ubuntu-utah.ubuntuforums.org/showthread.php?t=548178

If

Re: [pulseaudio-discuss] Help in setting up PA... SOLVED

2008-06-02 Thread Richard Geddes

Juan,

I'll try to help...

1) You have 4 sound cards in one computer... yes?

2) the alsamixer can identify all 4 cards.

3) The padevchooser identifies 2 cards

4) You want pulseaudio to identify all 4 cards

--

If this sounds correct, I would start by getting hardware information 
about your cards. 

Are you familiar with CLI (command line interface)... ie how to use a 
shell in linux?  or do you use the GUI (Grahpical User Interface) only? 


I'm asking this so I can explain better.

R


Juan A Fuentes Bermudez wrote:

hi, sorry for my english
 
i have 4 sound card
 
in the alsamixer  i can choice the 4 card to change parameters
 
but when in the padevchooser i an click in te default sink only apears 
2 card
 
i use ubuntu hardy, with the default default.pa with hall_detect and 
detect module active
 
how can list exact name of alsa devices to add module_alsa  whit the 
correspond name of my 4 devices manually?
 
sorry bye
 


- Original Message -
*From:* Richard Geddes 
*To:* General PulseAudio Discussion

*Sent:* Monday, June 02, 2008 3:34 PM
*Subject:* Re: [pulseaudio-discuss] Help in setting up PA... SOLVED

Hi,

I'm back again.  I upgraded to Ubuntu 8.04 which uses PA as the
default sound server and new hardware(AMD Athlon X2)  The PA
server is version 0.9.10.  My /etc/default.pa looks like this:

.nofail
load-sample-lazy pulse-hotplug /usr/share/sounds/startup3.wav
.fail
load-module module-alsa-sink sink_name=intel_hda_out device=hw:0
load-module module-alsa-source source_name=intel_hda_in device=hw:0
load-module module-alsa-sink sink_name=delta_out device=hw:1
channels=10
channel_map=left,right,aux0,aux1,aux2,aux3,aux4,aux5,aux6,aux7
load-module module-alsa-source source_name=delta_in device=hw:1
channels=12
channel_map=left,right,aux0,aux1,aux2,aux3,aux4,aux5,aux6,aux7,aux8,aux9
set-default-sink delta_out
set-default-source delta_in
.ifexists module-esound-protocol-unix.so
load-module module-esound-protocol-unix
.endif
load-module module-native-protocol-unix
load-module module-volume-restore
load-module module-default-device-restore
load-module module-rescue-streams
load-module module-suspend-on-idle
.ifexists module-gconf.so
.nofail
load-module module-gconf
.fail
.endif
.ifexists module-x11-publish.so
.nofail
load-module module-x11-publish
.fail
.endif

To get feedback from the PA server I used paman (pulseaudio sound
manager in ubuntu) and it said that the intel_hda_out device is
the default sink.  I tried to force the default sink to be
delta_out with pacmd, but that stopped the PA server... I didn't
realize that when I exit paman, it shuts the pa server down.  I
was a little confused by that... expecting the server to stay alive.

I noticed that I could "play-sample" to the delta_out and it
sounded fine.  It looked like I can get my Delta 66 card and PA to
work but only in that "play-sample" mode. 


I did not realize that I had the volume-restore enabled, and it
had quite a few settings from the past that were all related to
intel_hda_out... also my ~/.pulse/default-sink file was also set
to intel_hda_out... anyway even though the global config
file(/etc/pulse/default.pa) set the default sink to delta_out,
there are local config files in ~/.pulse/ that can also modify the
defaults.  It's probably in the literature somewhere, and it makes
sense for clients that are sharing a server.

Anyway, I after changing *all* (local and global) the config
files, the system works... and pretty well.  Hope this helps
someone with their M-Audio Delta setup.

R

Tanu Kaskinen wrote:

On Fri, Feb 01, 2008 at 03:02:40PM -0500, Richard Geddes wrote:
  
You are correct... latest release Ubuntu 7.10 comes with PA 0.9.6.  
I'll look into getting the latest version of PA.


My goal was to use PA as a replacement for esound server...  I'd like to
be able to record/mix different sound sources (midi, analog, sound from
files (mp3, wav, ogg, etc)) and be able to create different file
formats, including sound delivered in flash (I'm not a fan of flash as
it consumes alot of cpu time, but it is in demand).  I played with jackd
for a while and was impressed with it's technical capabilities, but
unfortunately, I haven't found a way to play flash sound through
jackd... that is, flash in firefox.  I found a how-to in the Ubuntu
forum that seemed to patch together a solution the involved PA:

http://ubuntu-utah.ubuntuforums.org/showthread.php?t=548178



If you want to record midi and do other "pro-audio" stuff,
then jack is the way to go. If you also want to do "desktop"
stuff (like have every media player 

Re: [pulseaudio-discuss] Help in setting up PA... SOLVED

2008-06-02 Thread Juan A Fuentes Bermudez
hi, sorry for my english 

i have 4 sound card

in the alsamixer  i can choice the 4 card to change parameters 

but when in the padevchooser i an click in te default sink only apears 2 card

i use ubuntu hardy, with the default default.pa with hall_detect and detect 
module active

how can list exact name of alsa devices to add module_alsa  whit the correspond 
name of my 4 devices manually?

sorry bye 

  - Original Message - 
  From: Richard Geddes 
  To: General PulseAudio Discussion 
  Sent: Monday, June 02, 2008 3:34 PM
  Subject: Re: [pulseaudio-discuss] Help in setting up PA... SOLVED


  Hi,

  I'm back again.  I upgraded to Ubuntu 8.04 which uses PA as the default sound 
server and new hardware(AMD Athlon X2)  The PA server is version 0.9.10.  My 
/etc/default.pa looks like this:

  .nofail
  load-sample-lazy pulse-hotplug /usr/share/sounds/startup3.wav
  .fail
  load-module module-alsa-sink sink_name=intel_hda_out device=hw:0
  load-module module-alsa-source source_name=intel_hda_in device=hw:0
  load-module module-alsa-sink sink_name=delta_out device=hw:1 channels=10 
channel_map=left,right,aux0,aux1,aux2,aux3,aux4,aux5,aux6,aux7
  load-module module-alsa-source source_name=delta_in device=hw:1 channels=12 
channel_map=left,right,aux0,aux1,aux2,aux3,aux4,aux5,aux6,aux7,aux8,aux9
  set-default-sink delta_out 
  set-default-source delta_in
  .ifexists module-esound-protocol-unix.so
  load-module module-esound-protocol-unix
  .endif
  load-module module-native-protocol-unix
  load-module module-volume-restore
  load-module module-default-device-restore
  load-module module-rescue-streams
  load-module module-suspend-on-idle
  .ifexists module-gconf.so
  .nofail
  load-module module-gconf
  .fail
  .endif
  .ifexists module-x11-publish.so
  .nofail
  load-module module-x11-publish
  .fail
  .endif

  To get feedback from the PA server I used paman (pulseaudio sound manager in 
ubuntu) and it said that the intel_hda_out device is the default sink.  I tried 
to force the default sink to be delta_out with pacmd, but that stopped the PA 
server... I didn't realize that when I exit paman, it shuts the pa server down. 
 I was a little confused by that... expecting the server to stay alive.

  I noticed that I could "play-sample" to the delta_out and it sounded fine.  
It looked like I can get my Delta 66 card and PA to work but only in that 
"play-sample" mode.  

  I did not realize that I had the volume-restore enabled, and it had quite a 
few settings from the past that were all related to intel_hda_out... also my 
~/.pulse/default-sink file was also set to intel_hda_out... anyway even though 
the global config file(/etc/pulse/default.pa) set the default sink to 
delta_out, there are local config files in ~/.pulse/ that can also modify the 
defaults.  It's probably in the literature somewhere, and it makes sense for 
clients that are sharing a server.

  Anyway, I after changing *all* (local and global) the config files, the 
system works... and pretty well.  Hope this helps someone with their M-Audio 
Delta setup.

  R

  Tanu Kaskinen wrote: 
On Fri, Feb 01, 2008 at 03:02:40PM -0500, Richard Geddes wrote:
  You are correct... latest release Ubuntu 7.10 comes with PA 0.9.6.  
I'll look into getting the latest version of PA.

My goal was to use PA as a replacement for esound server...  I'd like to
be able to record/mix different sound sources (midi, analog, sound from
files (mp3, wav, ogg, etc)) and be able to create different file
formats, including sound delivered in flash (I'm not a fan of flash as
it consumes alot of cpu time, but it is in demand).  I played with jackd
for a while and was impressed with it's technical capabilities, but
unfortunately, I haven't found a way to play flash sound through
jackd... that is, flash in firefox.  I found a how-to in the Ubuntu
forum that seemed to patch together a solution the involved PA:

http://ubuntu-utah.ubuntuforums.org/showthread.php?t=548178

If you want to record midi and do other "pro-audio" stuff,
then jack is the way to go. If you also want to do "desktop"
stuff (like have every media player just work), then the
best solution in my experience is to run pulseaudio on top
of jack (like instructed in that link).

A summary of what you'll have to do at minimum:
- Get pulseaudio version >= 0.9.7
- Remove device loading from /etc/pulse/default.pa and add
  the jack modules instead
- Edit /etc/security/limits.conf as instructed in the link
- Edit /etc/pulse/daemon.conf to enable realtime scheduling
- Run jackd with -R parameter (i.e. in realtime mode)
- Other stuff that I have forgot ;)

If you are going to record midi, that probably means that
you have some midi instrument that you want to be able to
play live. That requires quite low latency. That's
completely possible to achieve. Unfortunately it may require
extensive tuning (mostly kernel, but you may need to tweak
irq priorities as well). Vanilla kernels are AFAIK getting
better and bet

Re: [pulseaudio-discuss] Help in setting up PA... SOLVED

2008-06-02 Thread Richard Geddes

Hi,

I'm back again.  I upgraded to Ubuntu 8.04 which uses PA as the default 
sound server and new hardware(AMD Athlon X2)  The PA server is version 
0.9.10.  My /etc/default.pa looks like this:


.nofail
load-sample-lazy pulse-hotplug /usr/share/sounds/startup3.wav
.fail
load-module module-alsa-sink sink_name=intel_hda_out device=hw:0
load-module module-alsa-source source_name=intel_hda_in device=hw:0
load-module module-alsa-sink sink_name=delta_out device=hw:1 channels=10 
channel_map=left,right,aux0,aux1,aux2,aux3,aux4,aux5,aux6,aux7
load-module module-alsa-source source_name=delta_in device=hw:1 
channels=12 
channel_map=left,right,aux0,aux1,aux2,aux3,aux4,aux5,aux6,aux7,aux8,aux9

set-default-sink delta_out
set-default-source delta_in
.ifexists module-esound-protocol-unix.so
load-module module-esound-protocol-unix
.endif
load-module module-native-protocol-unix
load-module module-volume-restore
load-module module-default-device-restore
load-module module-rescue-streams
load-module module-suspend-on-idle
.ifexists module-gconf.so
.nofail
load-module module-gconf
.fail
.endif
.ifexists module-x11-publish.so
.nofail
load-module module-x11-publish
.fail
.endif

To get feedback from the PA server I used paman (pulseaudio sound 
manager in ubuntu) and it said that the intel_hda_out device is the 
default sink.  I tried to force the default sink to be delta_out with 
pacmd, but that stopped the PA server... I didn't realize that when I 
exit paman, it shuts the pa server down.  I was a little confused by 
that... expecting the server to stay alive.


I noticed that I could "play-sample" to the delta_out and it sounded 
fine.  It looked like I can get my Delta 66 card and PA to work but only 
in that "play-sample" mode. 

I did not realize that I had the volume-restore enabled, and it had 
quite a few settings from the past that were all related to 
intel_hda_out... also my ~/.pulse/default-sink file was also set to 
intel_hda_out... anyway even though the global config 
file(/etc/pulse/default.pa) set the default sink to delta_out, there are 
local config files in ~/.pulse/ that can also modify the defaults.  It's 
probably in the literature somewhere, and it makes sense for clients 
that are sharing a server.


Anyway, I after changing *all* (local and global) the config files, the 
system works... and pretty well.  Hope this helps someone with their 
M-Audio Delta setup.


R

Tanu Kaskinen wrote:

On Fri, Feb 01, 2008 at 03:02:40PM -0500, Richard Geddes wrote:
  
You are correct... latest release Ubuntu 7.10 comes with PA 0.9.6.  
I'll look into getting the latest version of PA.


My goal was to use PA as a replacement for esound server...  I'd like to
be able to record/mix different sound sources (midi, analog, sound from
files (mp3, wav, ogg, etc)) and be able to create different file
formats, including sound delivered in flash (I'm not a fan of flash as
it consumes alot of cpu time, but it is in demand).  I played with jackd
for a while and was impressed with it's technical capabilities, but
unfortunately, I haven't found a way to play flash sound through
jackd... that is, flash in firefox.  I found a how-to in the Ubuntu
forum that seemed to patch together a solution the involved PA:

http://ubuntu-utah.ubuntuforums.org/showthread.php?t=548178



If you want to record midi and do other "pro-audio" stuff,
then jack is the way to go. If you also want to do "desktop"
stuff (like have every media player just work), then the
best solution in my experience is to run pulseaudio on top
of jack (like instructed in that link).

A summary of what you'll have to do at minimum:
- Get pulseaudio version >= 0.9.7
- Remove device loading from /etc/pulse/default.pa and add
  the jack modules instead
- Edit /etc/security/limits.conf as instructed in the link
- Edit /etc/pulse/daemon.conf to enable realtime scheduling
- Run jackd with -R parameter (i.e. in realtime mode)
- Other stuff that I have forgot ;)

If you are going to record midi, that probably means that
you have some midi instrument that you want to be able to
play live. That requires quite low latency. That's
completely possible to achieve. Unfortunately it may require
extensive tuning (mostly kernel, but you may need to tweak
irq priorities as well). Vanilla kernels are AFAIK getting
better and better regarding latency, so first try with your
current kernel. The actual latency is controlled by jackd
parameters -n and -p (read man jackd). If your kernel isn't
able to provide low enough latency, you'll get drop-outs and
xruns (the former being the audible consequence of the
latter).

If you have problems with setting pulseaudio to work in
combination with jack, or anything else pulseaudio related,
then feel free to ask further questions.

If it turns out that your system needs latency-tuning, here
are a few kernel options you could try without compiling an
-rt patched kernel:
CONFIG_NO_HZ=y
CONFIG_HZ_1000=y
CONFIG_HZ=1000
CONFIG_HIGH_RES_TIMERS=y (AFAIK th