report self-connect-mode on server start
This commit is contained in:
parent
00f468fa29
commit
c9eed86280
|
@ -142,6 +142,18 @@ struct jackctl_parameter
|
|||
jack_driver_param_constraint_desc_t * constraint_ptr;
|
||||
};
|
||||
|
||||
const char * jack_get_self_connect_mode_description(char mode)
|
||||
{
|
||||
struct jack_constraint_enum_char_descriptor * descr_ptr;
|
||||
|
||||
for (descr_ptr = self_connect_mode_constraint_descr_array;
|
||||
descr_ptr->value;
|
||||
descr_ptr++)
|
||||
if (descr_ptr->value == mode) return descr_ptr->short_desc;
|
||||
|
||||
return NULL;
|
||||
}
|
||||
|
||||
static
|
||||
struct jackctl_parameter *
|
||||
jackctl_add_parameter(
|
||||
|
|
|
@ -34,6 +34,8 @@ Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
|||
#include "JackError.h"
|
||||
#include "JackMessageBuffer.h"
|
||||
|
||||
const char * jack_get_self_connect_mode_description(char mode);
|
||||
|
||||
namespace Jack
|
||||
{
|
||||
|
||||
|
@ -48,6 +50,8 @@ JackServer::JackServer(bool sync, bool temporary, int timeout, bool rt, int prio
|
|||
jack_info("JACK server starting in non-realtime mode");
|
||||
}
|
||||
|
||||
jack_info("self-connect-mode is \"%s\"", jack_get_self_connect_mode_description(self_connect_mode));
|
||||
|
||||
fGraphManager = JackGraphManager::Allocate(port_max);
|
||||
fEngineControl = new JackEngineControl(sync, temporary, timeout, rt, priority, verbose, clock, server_name);
|
||||
fEngine = new JackLockedEngine(fGraphManager, GetSynchroTable(), fEngineControl, self_connect_mode);
|
||||
|
|
Loading…
Reference in New Issue