I'm so confused. I cannot get jack to work. I must have a big hole in my understanding of how it works.
I have a focusrite scarlett 1820 connected via usb. If I don't start jack, alsa only. I can get the juce demo and my software to test to it (meter shows input and output). My mixer program does the same. I can also get it to work with the interanal mic and speaker via alsa.
But the demo is not built with jack, but my mixer is. I configure jack to use this usb mixer, but nothing is there to route until I start my program. I open settings in my program and JUCE shows jack inputs and outputs of system and JUCEJack. If select system I can selecte channel pairs that match the hardware but the input does not work nor does test. If I select JUCEJack, I see the channels but cannot enable them. Sometimes when look at the router I will see mutliples of the JUCEJack devices.
I notice that every time I run that settings menu, the AudioDevice.xml file adds another entry, that my be a duplicate. I assume this is why the router shows multiple devices. (I am routing with catia) Right now AudioDevice.xml it looks like this:
<?xml version="1.0" encoding="UTF-8"?>
<DEVICESETUP deviceType="JACK" audioOutputDeviceName="system" audioInputDeviceName="system"
audioDeviceRate="44100" audioDeviceInChans="1111111111111111"
audioDeviceOutChans="11111111111111111111" defaultMidiOutput="<< none >>"/>
<?xml version="1.0" encoding="UTF-8"?>
<DEVICESETUP deviceType="JACK" audioOutputDeviceName="JUCEJack-01" audioInputDeviceName="JUCEJack-01"
audioDeviceRate="44100" defaultMidiOutput="<< none >>"/>
<?xml version="1.0" encoding="UTF-8"?>
<DEVICESETUP deviceType="JACK" audioOutputDeviceName="system" audioInputDeviceName="system"
audioDeviceRate="44100" audioDeviceInChans="11111111" audioDeviceOutChans="11111111"
defaultMidiOutput="<< none >>"/>
<?xml version="1.0" encoding="UTF-8"?>
<DEVICESETUP deviceType="JACK" audioOutputDeviceName="JUCEJack-01" audioInputDeviceName="JUCEJack-01"
audioDeviceRate="44100" defaultMidiOutput="<< none >>"/>
<?xml version="1.0" encoding="UTF-8"?>
<DEVICESETUP deviceType="JACK" audioOutputDeviceName="system" audioInputDeviceName="system"
audioDeviceRate="44100" defaultMidiOutput="<< none >>"/>
My setting window is simply this:
SettingsPanel::SettingsPanel()
{
setSize (800, 500);
Component *c = new AudioDeviceSelectorComponent(
MainContentComponent::getSharedAudioDeviceManager(),
0, 256,
0, 256,
true, true,
true,
false );
c->setBounds (0, 0, 800, 500);
addAndMakeVisible (c);
}
SettingsPanel::~SettingsPanel()
{
deleteAllChildren ();
}
Why do I get duplicate entries in the AudioDevice.xml? Is this why I see multiple entries when routing?