Page 1 of 1

cadence alsa audio bridge [SOLVED]

Posted: Fri Dec 18, 2015 6:22 am
by blubee
I installed cadence

This is what my audio looks like in the alsa mixer tab.
Image

this is what it looks like in gnome-settings
Image

this is the cadence config settings that I currently have
Image

when I try to start the ALSA AUDIO using snd-loop daemon I get this output to the log.
----------------------------------------------------------------------------------------------------------------------
Fri Dec 18 14:05:23 2015: ERROR: cannot create new client; cadence-aloop-daemon already exists
Fri Dec 18 14:05:23 2015: ERROR: Cannot read socket fd = 15 err = No such file or directory
Fri Dec 18 14:05:23 2015: ERROR: Unknown request 0
Fri Dec 18 14:05:24 2015: Client 'cadence-aloop-daemon' with PID 4545 is out
Fri Dec 18 14:05:24 2015: ERROR: Cannot write socket fd = 13 err = Broken pipe
Fri Dec 18 14:05:24 2015: ERROR: JackRequest::ClientClose write error ref = 4

right now the main concern is to get jack being able to play audio because while I am studying linux audio i watch videos, then to go to play I have to stop turn off cadence and jack to play audio then stop the audio and switch jack back on to continue.

Also I don't know if this is the correct way but I have midi working through the alsa sequencer in cadence jack settings.

Re: cadence alsa audio bridge

Posted: Fri Dec 18, 2015 8:09 am
by blubee
falkTX wrote:Do you have kxstudio-default-settings package installed?
I'd guess not, so install it and reboot.
the alsa audio bridge should then work.
after installing the kxstudio-default-settings package and restarting the laptop cadence now looks like this.

//I don't know how to resize these images but if you look at the full image there's the cadence patchbay on the right side.
Image

and I am able to start the plugin but there's still no sound and the other audio source if is still playing will still stop.

The is the log output from cadence.

Fri Dec 18 16:04:54 2015: Starting jack server...
Fri Dec 18 16:04:54 2015: JACK server starting in realtime mode with priority 10
Fri Dec 18 16:04:54 2015: self-connect-mode is "Don't restrict self connect requests"
Fri Dec 18 16:04:54 2015: Acquired audio card Audio1
Fri Dec 18 16:04:54 2015: creating alsa driver ... hw:PCH,0|hw:PCH,0|1024|2|48000|2|2|nomon|swmeter|-|32bit
Fri Dec 18 16:04:54 2015: Using ALSA driver HDA-Intel running on card 1 - HDA Intel PCH at 0xc1e14000 irq 50
Fri Dec 18 16:04:54 2015: configuring for 48000Hz, period = 1024 frames (21.3 ms), buffer = 2 periods
Fri Dec 18 16:04:54 2015: ALSA: final selected sample format for capture: 32bit integer little-endian
Fri Dec 18 16:04:54 2015: ALSA: use 2 periods for capture
Fri Dec 18 16:04:54 2015: ALSA: final selected sample format for playback: 32bit integer little-endian
Fri Dec 18 16:04:54 2015: ALSA: use 2 periods for playback
Fri Dec 18 16:04:54 2015: port created: Midi-Through:midi/playback_1
Fri Dec 18 16:04:54 2015: port created: Midi-Through:midi/capture_1
Fri Dec 18 16:04:54 2015: port created: Midi-Through:midi/playback_2
Fri Dec 18 16:04:54 2015: port created: Midi-Through:midi/capture_2
Fri Dec 18 16:04:54 2015: port created: Midi-Through:midi/playback_3
Fri Dec 18 16:04:54 2015: port created: Midi-Through:midi/capture_3
Fri Dec 18 16:04:54 2015: port created: Midi-Through:midi/playback_4
Fri Dec 18 16:04:54 2015: port created: Midi-Through:midi/capture_4
Fri Dec 18 16:04:54 2015: port created: Midi-Through:midi/playback_5
Fri Dec 18 16:04:54 2015: port created: Midi-Through:midi/capture_5
Fri Dec 18 16:04:54 2015: port created: Midi-Through:midi/playback_6
Fri Dec 18 16:04:54 2015: port created: Midi-Through:midi/capture_6
Fri Dec 18 16:04:54 2015: port created: Midi-Through:midi/playback_7
Fri Dec 18 16:04:54 2015: port created: Midi-Through:midi/capture_7
Fri Dec 18 16:04:54 2015: port created: Midi-Through:midi/playback_8
Fri Dec 18 16:04:54 2015: port created: Midi-Through:midi/capture_8
Fri Dec 18 16:04:54 2015: port created: Midi-Through:midi/playback_9
Fri Dec 18 16:04:54 2015: port created: Midi-Through:midi/capture_9
Fri Dec 18 16:04:54 2015: port created: Midi-Through:midi/playback_10
Fri Dec 18 16:04:54 2015: port created: Midi-Through:midi/capture_10
Fri Dec 18 16:04:54 2015: port created: Midi-Through:midi/playback_11
Fri Dec 18 16:04:54 2015: port created: Midi-Through:midi/capture_11
Fri Dec 18 16:04:54 2015: port created: Midi-Through:midi/playback_12
Fri Dec 18 16:04:54 2015: port created: Midi-Through:midi/capture_12
Fri Dec 18 16:04:54 2015: port created: Midi-Through:midi/playback_13
Fri Dec 18 16:04:54 2015: port created: Midi-Through:midi/capture_13
Fri Dec 18 16:04:54 2015: port created: Midi-Through:midi/playback_14
Fri Dec 18 16:04:54 2015: port created: Midi-Through:midi/capture_14
Fri Dec 18 16:04:54 2015: port created: Midi-Through:midi/playback_15
Fri Dec 18 16:04:54 2015: port created: Midi-Through:midi/capture_15
Fri Dec 18 16:04:54 2015: port created: Midi-Through:midi/playback_16
Fri Dec 18 16:04:54 2015: port created: Midi-Through:midi/capture_16
Fri Dec 18 16:04:54 2015: graph reorder: new port 'system:capture_1'
Fri Dec 18 16:04:54 2015: New client 'system' with PID 0
Fri Dec 18 16:04:54 2015: graph reorder: new port 'system:capture_2'
Fri Dec 18 16:04:54 2015: graph reorder: new port 'system:playback_1'
Fri Dec 18 16:04:54 2015: graph reorder: new port 'system:playback_2'
Fri Dec 18 16:04:54 2015: graph reorder: new port 'system:midi_capture_1'
Fri Dec 18 16:04:54 2015: graph reorder: new port 'system:midi_playback_1'
Fri Dec 18 16:04:54 2015: graph reorder: new port 'system:midi_capture_2'
Fri Dec 18 16:04:54 2015: graph reorder: new port 'system:midi_playback_2'
Fri Dec 18 16:04:54 2015: graph reorder: new port 'system:midi_capture_3'
Fri Dec 18 16:04:54 2015: graph reorder: new port 'system:midi_playback_3'
Fri Dec 18 16:04:54 2015: graph reorder: new port 'system:midi_capture_4'
Fri Dec 18 16:04:54 2015: graph reorder: new port 'system:midi_playback_4'
Fri Dec 18 16:04:54 2015: graph reorder: new port 'system:midi_capture_5'
Fri Dec 18 16:04:54 2015: graph reorder: new port 'system:midi_playback_5'
Fri Dec 18 16:04:54 2015: graph reorder: new port 'system:midi_capture_6'
Fri Dec 18 16:04:54 2015: graph reorder: new port 'system:midi_playback_6'
Fri Dec 18 16:04:54 2015: graph reorder: new port 'system:midi_capture_7'
Fri Dec 18 16:04:54 2015: graph reorder: new port 'system:midi_playback_7'
Fri Dec 18 16:04:54 2015: graph reorder: new port 'system:midi_capture_8'
Fri Dec 18 16:04:54 2015: graph reorder: new port 'system:midi_playback_8'
Fri Dec 18 16:04:54 2015: graph reorder: new port 'system:midi_capture_9'
Fri Dec 18 16:04:54 2015: graph reorder: new port 'system:midi_playback_9'
Fri Dec 18 16:04:54 2015: graph reorder: new port 'system:midi_capture_10'
Fri Dec 18 16:04:54 2015: graph reorder: new port 'system:midi_playback_10'
Fri Dec 18 16:04:54 2015: graph reorder: new port 'system:midi_capture_11'
Fri Dec 18 16:04:54 2015: graph reorder: new port 'system:midi_playback_11'
Fri Dec 18 16:04:54 2015: graph reorder: new port 'system:midi_capture_12'
Fri Dec 18 16:04:54 2015: graph reorder: new port 'system:midi_playback_12'
Fri Dec 18 16:04:54 2015: graph reorder: new port 'system:midi_capture_13'
Fri Dec 18 16:04:54 2015: graph reorder: new port 'system:midi_playback_13'
Fri Dec 18 16:04:54 2015: graph reorder: new port 'system:midi_capture_14'
Fri Dec 18 16:04:54 2015: graph reorder: new port 'system:midi_playback_14'
Fri Dec 18 16:04:54 2015: graph reorder: new port 'system:midi_capture_15'
Fri Dec 18 16:04:54 2015: graph reorder: new port 'system:midi_playback_15'
Fri Dec 18 16:04:54 2015: graph reorder: new port 'system:midi_capture_16'
Fri Dec 18 16:04:54 2015: graph reorder: new port 'system:midi_playback_16'
Fri Dec 18 16:04:54 2015: New client 'catia' with PID 3619
Fri Dec 18 16:04:59 2015: New client 'cadence-aloop-daemon' with PID 4073
Fri Dec 18 16:04:59 2015: New client 'alsa2jack' with PID 4077
Fri Dec 18 16:04:59 2015: New client 'jack2alsa' with PID 4078
Fri Dec 18 16:04:59 2015: port 'jack2alsa:playback_1' created
Fri Dec 18 16:04:59 2015: port 'jack2alsa:playback_2' created
Fri Dec 18 16:04:59 2015: port 'alsa2jack:capture_1' created
Fri Dec 18 16:04:59 2015: port 'alsa2jack:capture_2' created
Fri Dec 18 16:05:00 2015: Connecting 'alsa2jack:capture_1' to 'system:playback_1'
Fri Dec 18 16:05:00 2015: Connecting 'alsa2jack:capture_2' to 'system:playback_2'
Fri Dec 18 16:05:01 2015: Connecting 'system:capture_1' to 'jack2alsa:playback_1'
Fri Dec 18 16:05:01 2015: Connecting 'system:capture_2' to 'jack2alsa:playback_2'

stopping jack through cadence and the audio resumes.

Re: cadence alsa audio bridge

Posted: Fri Dec 18, 2015 12:38 pm
by blubee
falkTX wrote:That is working exactly as intended.
JACK is running and the alsa-audio bridge works.

Because you're running gnome you'll likely need pulseaudio.
So I recommend you to stop the alsa-audio bridge and set it to "alsa -> pulseaudio -> jack", then start the pulseaudio bridge.
(if the pulseaudio bridge doesn't start, install the pulseaudio-module-jack package)

The gnome mixer is useless when using jack though, because it only supports pulseaudio and now pulseaudio has been made 'slave' to jack.
(ie, no longer controlling the soundcard)

Use something else for the mixer, like volti.
There's a new menu in my gnome sound settings called loop-back which if I select that option after starting jack through cadence the audio works but again I still have to go into that sound setting screen to do it.

//loopback, there's also on in the mic section as well
Image

I've looked into volti and it seems like something that I would prefer to pulse audio but it seems totally removing pulse audio will cripple gnome so that's not an option. After installing volti with apt I have this version:
Installed: 0.2.3-5
Candidate: 0.2.3-5
Version table:
*** 0.2.3-5 0
500 http://http.debian.net/debian/ jessie/main amd64 Packages
100 /var/lib/dpkg/status

I changed the config file and it seems volti starts automatically when I reboot my computer because running volti from the command line it says:
Only one instance is allowed
Exiting

but I don't see anything and the default gnome sound panel is still there.

Re: cadence alsa audio bridge

Posted: Fri Dec 18, 2015 2:43 pm
by blubee
okay i've seemed to have solve this issue.

I've added this to my rc.local file

Code: Select all

cadence-session-start --system-start
after installing the "pulseaudio-module-jack package" so that I can continue to use pulse audio with cadence.

after that restarting works, everything works as expected, audio wise anyways.

Thanks for the help @falkTX