Ticket #345 (new defect)

Opened 8 months ago

Last modified 8 months ago

Can't connect to jack

Reported by: user Owned by: somebody
Priority: minor Milestone:
Component: libzzub Version: linux
Keywords: jack system Cc:

Description

I use an updated debian unstable. jack version: 0.109.0

when i try to start aldrin (compiled from svn), in console i receive this error: available drivers: #0: system [IO] best output pick: system creating output device 'system' with 44100Hz samplerate terminate called after throwing an instance of 'RtError?'

what(): RtApiJack::startStream(): error connecting output ports!

Abortito

also libzzub is from svn.

alsa output works fine.

Change History

Changed 8 months ago by user

Could you also discuss this on the aldrin users mailing list (on sourceforge).

I found the part of code in RtAudio?.cpp where this is happening:

2074 // Now make the port connections. Since RtAudio? wasn't designed to 2075 // allow the user to select particular channels of a device, we'll 2076 // just open the first "nChannels" ports with offset. 2077 for ( unsigned int i=0; i<stream_.nUserChannels[0]; i++ ) { 2078 result = 1; 2079 if ( ports[ stream_.channelOffset[0] + i ] ) 2080 result = jack_connect( handle->client, jack_port_name( handle->ports[0][i] ), ports[ stream_.channelOffset[0] + i ] ); 2081 if ( result ) { 2082 free( ports ); 2083 errorText_ = "RtApiJack::startStream(): error connecting output ports!"; 2084 goto unlock; 2085 } 2086 }

I would need you to test some patches to this to work out what is going on: like find out what the value of "result" is for a start..

jms

Changed 8 months ago by user

Sort out the formatting:

2074 // Now make the port connections. Since RtAudio? wasn't designed to

2075 // allow the user to select particular channels of a device, we'll

2076 // just open the first "nChannels" ports with offset.

2077 for ( unsigned int i=0; i<stream_.nUserChannels[0]; i++ ) {

2078 result = 1;

2079 if ( ports[ stream_.channelOffset[0] + i ] )

2080 result = jack_connect( handle->client, jack_port_name( handle->ports[0][i] ), ports[ stream_.channelOffset[0] + i ] );

2081 if ( result ) {

2082 free( ports );

2083 errorText_ = "RtApiJack::startStream(): error connecting output ports!";

2084 goto unlock;

2085 }

2086 }

Note: See TracTickets for help on using tickets.