LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 07-13-2016, 02:50 PM   #1
Jeff91
Bodhi Developer
 
Registered: Jan 2009
Location: Bloomington, IL
Distribution: Bodhi
Posts: 379

Rep: Reputation: 68
Setting up Compression using Pulse Audio on Linux


I'm using an Ubuntu 14.04 based distribution and I am trying to get audio compression setup on my microphone I am using for some recording. I've found a few different guides that suggest using LADAP plugins, but I can't see to get any of them live. I get a new sink added successfully, but I can't seem to get audio from my microphone piped into it successfully.

My list of audio syncs:

Code:
jeff@jeff-desktop:~$ pacmd list-sinks | grep name:
        name: <alsa_output.pci-0000_01_00.1.hdmi-stereo>
        name: <alsa_output.pci-0000_00_1b.0.analog-stereo>
And the command I am using to create the compressor channel:

Code:
pacmd load-module module-ladspa-sink sink_name=ladspa_output.fast_lookahead_limiter_1913.fastLookaheadLimiter master=alsa_output.pci-0000_00_1b.0.analog-stereo.monitor plugin=fast_lookahead_limiter_1913 label=fastLookaheadLimiter control=0,-5,0.25
Screenshot of my pavucontrol inputs before adding the compressor channel:

http://www.enlightenment.org/ss/e-57...3.52845433.jpg

Any suggestions / guidance on what I might be doing wrong?
 
Old 07-14-2016, 11:29 AM   #2
Shadow_7
Senior Member
 
Registered: Feb 2003
Distribution: debian
Posts: 4,137
Blog Entries: 1

Rep: Reputation: 873Reputation: 873Reputation: 873Reputation: 873Reputation: 873Reputation: 873Reputation: 873
If you're going to be doing realtime effects you should probably run jackd and at worse, pulse over jackd.

http://www.jackaudio.org/faq/pulseaudio_and_jack.html

#3 on that setup list which redirects to here:

https://github.com/jackaudio/jackaud...er_PulseOnJack

And your effects will likely be plugged into jack(qjackctl) while pulse plays a dumb retailer of sounds.
 
Old 07-14-2016, 11:45 AM   #3
Shadow_7
Senior Member
 
Registered: Feb 2003
Distribution: debian
Posts: 4,137
Blog Entries: 1

Rep: Reputation: 873Reputation: 873Reputation: 873Reputation: 873Reputation: 873Reputation: 873Reputation: 873
http://wiki.linuxaudio.org/wiki/plug-ins

The calf one might be the easier of the bunch to use. But I don't dwell much in live options to have used these much.

# apt-get install calf-plugins jackd qjackctl

Start jackd, start calfjackhost, start qjackctl and connect the dots. Select the compressor under Add plugin on the calfjackhost gui.
 
Old 07-16-2016, 09:43 AM   #4
Jeff91
Bodhi Developer
 
Registered: Jan 2009
Location: Bloomington, IL
Distribution: Bodhi
Posts: 379

Original Poster
Rep: Reputation: 68
Thank you for the suggestions! Going to sort through these later tonight.
 
Old 07-17-2016, 01:07 PM   #5
Jeff91
Bodhi Developer
 
Registered: Jan 2009
Location: Bloomington, IL
Distribution: Bodhi
Posts: 379

Original Poster
Rep: Reputation: 68
So I am trying to start Jackd through Cadence as recommend in several places. I added my user to the audio group, but Jackd is failing to start with this log:

Code:
un Jul 17 09:50:22 2016: ------------------
Sun Jul 17 09:50:22 2016: Controller activated. Version 1.9.10 (unknown) built on Sat Oct 19 11:11:48 2013
Sun Jul 17 09:50:22 2016: Loading settings from "/home/jeff/.config/jack/conf.xml" using expat_2.1.0 ...
Sun Jul 17 09:50:22 2016: ERROR: failed to stat "/home/jeff/.config/jack/conf.xml", error is 2 (No such file or directory)
Sun Jul 17 09:50:22 2016: ERROR: open() failed to open conf filename.
Sun Jul 17 09:50:22 2016: Listening for D-Bus messages
Sun Jul 17 09:50:52 2016: Starting jack server...
Sun Jul 17 09:50:52 2016: JACK server starting in realtime mode with priority 10
Sun Jul 17 09:50:52 2016: ERROR: Cannot lock down 82274202 byte memory area (Cannot allocate memory)
Sun Jul 17 09:50:52 2016: Acquired audio card Audio0
Sun Jul 17 09:50:52 2016: creating alsa driver ... hw:0|hw:0|1024|2|44100|0|0|nomon|swmeter|-|32bit
Sun Jul 17 09:50:52 2016: ERROR: ALSA: Cannot open PCM device alsa_pcm for playback. Falling back to capture-only mode
Sun Jul 17 09:50:52 2016: ERROR: Cannot initialize driver
Sun Jul 17 09:50:52 2016: ERROR: JackServer::Open failed with -1
Sun Jul 17 09:50:52 2016: ERROR: Failed to open server
Sun Jul 17 09:50:53 2016: Saving settings to "/home/jeff/.config/jack/conf.xml" ...
Sun Jul 17 10:48:15 2016: ------------------
Sun Jul 17 10:48:15 2016: Controller activated. Version 1.9.11 (unknown) built on Sun Jul  3 13:02:57 2016
Sun Jul 17 10:48:15 2016: Loading settings from "/home/jeff/.config/jack/conf.xml" using expat_2.1.0 ...
Sun Jul 17 10:48:15 2016: setting parameter 'engine':'driver':'(null)' to value "alsa"
Sun Jul 17 10:48:15 2016: setting parameter 'engine':'realtime':'(null)' to value "true"
Sun Jul 17 10:48:15 2016: setting parameter 'engine':'verbose':'(null)' to value "false"
Sun Jul 17 10:48:15 2016: setting parameter 'engine':'client-timeout':'(null)' to value "500"
Sun Jul 17 10:48:15 2016: setting parameter 'drivers':'alsa':'device' to value "hw:0"
Sun Jul 17 10:48:15 2016: setting parameter 'drivers':'alsa':'capture' to value "hw:0"
Sun Jul 17 10:48:15 2016: setting parameter 'drivers':'alsa':'playback' to value "hw:0"
Sun Jul 17 10:48:15 2016: setting parameter 'drivers':'alsa':'rate' to value "44100"
Sun Jul 17 10:48:15 2016: setting parameter 'drivers':'alsa':'period' to value "1024"
Sun Jul 17 10:48:15 2016: setting parameter 'drivers':'alsa':'nperiods' to value "2"
Sun Jul 17 10:48:15 2016: setting parameter 'drivers':'alsa':'hwmon' to value "false"
Sun Jul 17 10:48:15 2016: setting parameter 'drivers':'alsa':'hwmeter' to value "false"
Sun Jul 17 10:48:15 2016: setting parameter 'drivers':'alsa':'duplex' to value "true"
Sun Jul 17 10:48:15 2016: setting parameter 'drivers':'alsa':'softmode' to value "false"
Sun Jul 17 10:48:15 2016: setting parameter 'drivers':'alsa':'monitor' to value "false"
Sun Jul 17 10:48:15 2016: setting parameter 'drivers':'alsa':'dither' to value "n"
Sun Jul 17 10:48:15 2016: setting parameter 'drivers':'alsa':'shorts' to value "false"
Sun Jul 17 10:48:15 2016: Listening for D-Bus messages
Sun Jul 17 10:48:28 2016: Starting jack server...
Sun Jul 17 10:48:28 2016: JACK server starting in realtime mode with priority 10
Sun Jul 17 10:48:28 2016: self-connect-mode is "Don't restrict self connect requests"
Sun Jul 17 10:48:28 2016: ERROR: Cannot lock down 107341338 byte memory area (Cannot allocate memory)
Sun Jul 17 10:48:28 2016: Acquired audio card Audio0
Sun Jul 17 10:48:28 2016: creating alsa driver ... hw:0|hw:0|1024|2|44100|0|0|nomon|swmeter|-|32bit
Sun Jul 17 10:48:28 2016: Using ALSA driver HDA-Intel running on card 0 - HDA Intel HDMI at 0xf7e34000 irq 33
Sun Jul 17 10:48:28 2016: ERROR: ALSA: Cannot open PCM device alsa_pcm for playback. Falling back to capture-only mode
Sun Jul 17 10:48:28 2016: Released audio card Audio0
Sun Jul 17 10:48:28 2016: ERROR: Cannot initialize driver
Sun Jul 17 10:48:28 2016: ERROR: JackServer::Open failed with -1
Sun Jul 17 10:48:28 2016: ERROR: Failed to open server
Sun Jul 17 10:51:27 2016: ------------------
Sun Jul 17 10:51:27 2016: Controller activated. Version 1.9.11 (unknown) built on Sun Jul  3 13:02:57 2016
Sun Jul 17 10:51:27 2016: Loading settings from "/home/jeff/.config/jack/conf.xml" using expat_2.1.0 ...
Sun Jul 17 10:51:27 2016: setting parameter 'engine':'driver':'(null)' to value "alsa"
Sun Jul 17 10:51:27 2016: setting parameter 'engine':'realtime':'(null)' to value "true"
Sun Jul 17 10:51:27 2016: setting parameter 'engine':'verbose':'(null)' to value "false"
Sun Jul 17 10:51:27 2016: setting parameter 'engine':'client-timeout':'(null)' to value "500"
Sun Jul 17 10:51:27 2016: setting parameter 'drivers':'alsa':'device' to value "hw:0"
Sun Jul 17 10:51:27 2016: setting parameter 'drivers':'alsa':'capture' to value "hw:0"
Sun Jul 17 10:51:27 2016: setting parameter 'drivers':'alsa':'playback' to value "hw:0"
Sun Jul 17 10:51:27 2016: setting parameter 'drivers':'alsa':'rate' to value "44100"
Sun Jul 17 10:51:27 2016: setting parameter 'drivers':'alsa':'period' to value "1024"
Sun Jul 17 10:51:27 2016: setting parameter 'drivers':'alsa':'nperiods' to value "2"
Sun Jul 17 10:51:27 2016: setting parameter 'drivers':'alsa':'hwmon' to value "false"
Sun Jul 17 10:51:27 2016: setting parameter 'drivers':'alsa':'hwmeter' to value "false"
Sun Jul 17 10:51:27 2016: setting parameter 'drivers':'alsa':'duplex' to value "true"
Sun Jul 17 10:51:27 2016: setting parameter 'drivers':'alsa':'softmode' to value "false"
Sun Jul 17 10:51:27 2016: setting parameter 'drivers':'alsa':'monitor' to value "false"
Sun Jul 17 10:51:27 2016: setting parameter 'drivers':'alsa':'dither' to value "n"
Sun Jul 17 10:51:27 2016: setting parameter 'drivers':'alsa':'shorts' to value "false"
Sun Jul 17 10:51:27 2016: Listening for D-Bus messages
Sun Jul 17 10:51:30 2016: Starting jack server...
Sun Jul 17 10:51:30 2016: JACK server starting in realtime mode with priority 10
Sun Jul 17 10:51:30 2016: self-connect-mode is "Don't restrict self connect requests"
Sun Jul 17 10:51:30 2016: Acquired audio card Audio0
Sun Jul 17 10:51:30 2016: creating alsa driver ... hw:0|hw:0|1024|2|44100|0|0|nomon|swmeter|-|32bit
Sun Jul 17 10:51:30 2016: Using ALSA driver HDA-Intel running on card 0 - HDA Intel HDMI at 0xf7e34000 irq 33
Sun Jul 17 10:51:30 2016: ERROR: ALSA: Cannot open PCM device alsa_pcm for playback. Falling back to capture-only mode
Sun Jul 17 10:51:30 2016: Released audio card Audio0
Sun Jul 17 10:51:30 2016: ERROR: Cannot initialize driver
Sun Jul 17 10:51:30 2016: ERROR: JackServer::Open failed with -1
Sun Jul 17 10:51:30 2016: ERROR: Failed to open server
 
Old 07-17-2016, 11:48 PM   #6
Shadow_7
Senior Member
 
Registered: Feb 2003
Distribution: debian
Posts: 4,137
Blog Entries: 1

Rep: Reputation: 873Reputation: 873Reputation: 873Reputation: 873Reputation: 873Reputation: 873Reputation: 873
$ cat /proc/asound/cards

If pulseaudio is running before jackd starts it'll lock the card from being used. The "autospawn = no" in /etc/pulse/client.conf lets you stop pulseaudio (and not have it restart -default-).

$ pgrep pulseaudio
$ pulseaudio --kill
(if running)

$ jackd -r -d alsa -d hw:2 -r 4800 -s -S -m -D
(non-realtime, 48kHz, 16 bit, midi, and full duplex (input and output))

What I normally default to for jackd. Where "-d hw:2" is the card with index number 2. A usb soundcard in my case.

$ calfjackhost
(to start calf)

$ qjackctl
(to start the gui for jackd to connect calf in middle of the input to output chain.)

Hopefully not too techy.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Pulse Audio purple52 Linux - Newbie 1 05-15-2014 10:16 PM
What is Pulse AUdio Sunfist Linux - Newbie 23 08-12-2013 06:58 PM
[arch linux ] Pulse audio,ATI Technologies Inc RV710/730 no card detected artur13 Linux - Newbie 3 01-19-2011 03:21 PM
pulse audio sulekha Ubuntu 1 02-10-2009 06:48 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 05:53 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration