Choppy sound Recording
Hey all I'm using PClinuxOS and a program called ardour to record. I start the qtjackctl then run ardour and i have my guitar plugged into my line in. which is enabled in alsa mixer. the sound records but sounds really bad and choppy. I'm set to 44100khz and the latency is set to 1024. what can i do to fix this?
|
there are a couple or many ways to aproach this.
first the easy stuff. don't use qjackcnl i have seen with some setups it causes too much resources to divert to updating the gui readout. just start jack with the line you find in ~/.jackdrc from the command line. next is to make x a little more nice. xorg really sucks resources. try a line like. renice +2 -p `ps -C Xorg -o pid=` use less or more "+2" as you can get away with and still have x resond ok. next and this is the most important thing is the buffer settings. generally the slower your sound hardware the larger buffers you need. this is the line i use to start jackd. jackd -R -P70 -dalsa -dhw:0 -r44100 -p512 -n2 you can try the 1024 setting you had above for -p or greater. i think don't change other settings or add other flags. next is you ~/.asoundrc where you can change the period and buffer settings for the soundcard itself. i give you mine as an example to start with or look at. it has alternate settings commented out you can play with. if you don't understand just post back. Code:
pcm.jackplug { look at cat /proc/interrupts pick out the one for rtc and your sound card then set them like this. chrt -f -p 82 `pidof "IRQ 11"` chrt -f -p 98 `pidof "IRQ 8"` where 8 for me is rtc and 11 is my soundcard so adjust as needed. last is to mess with harware latency settings look at lspci -v find your soundcard my soundcard is 04:08.0 you can try settings like setpci -v -s '04:08.0' latency_timer=48 setpci -v -s '04:08.0' latency_timer=78 setpci -v -s '04:08.0' latency_timer=ff and see what works the best. generally larger latency settings give larger bursts and better throughput. you might also be able to turn down video driver latency or even increase latency across the pci bus itself and see if it helps. post back if you can't get it going. there is kernel junk to do if you have to. |
All times are GMT -5. The time now is 09:07 AM. |