<div dir="ltr">Dear Chris,<div>thanks a lot for your prompt reply,</div><div><br></div><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Apr 26, 2017 at 11:45 PM, Chris Caudle <span dir="ltr"><<a href="mailto:chris@chriscaudle.org" target="_blank">chris@chriscaudle.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><span class="gmail-">On Wed, April 26, 2017 12:22 pm, Frodo Jedi wrote:<br>
> My goal is to send audio from the odroid board (master)<br>
> to the mac (slave) using a direct ethernet connection.<br>
<br>
</span>The jackd master is the device with the audio hardware.  Are your problems<br>
perhaps caused because you are following the setup instructions for master<br>
on a device with no audio hardware? (saw later on that you tried the other<br>
way around, so let's concentrate on that configuration).</blockquote><div><br></div><div><div><br class="gmail-Apple-interchange-newline">Actually, my goal is that of sending audio from the board to other connected devices, for the moment I am using a mac, it could be another pc with linux or windows.</div><div>I am going for a wired connection first, with the final aim to test netjack2 over wifi, and compare the wired and wireless behaviours under various conditions.</div><div><br></div><div>The odroid board (configured as master in the first case) has a beheringer soundcard perfectly working, I can record and listen audio using it. So I should be able to use the odroid + soundcard configuration as a master, and the mac as a slave. Right?</div></div><div><br></div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<span class="gmail-"><br>
> On the master:<br>
> /usr/bin/jackd -P 70 -p96 -t 2000 -dalsa -dhw:CODEC -S -s<br>
> -r48000 -p128 -n2<br>
<br>
> jack_load netmanager<br>
<br>
<br>
</span>That is on the odroid? </blockquote><div><br></div><div><br></div><div>yes</div><div><br></div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"> What ALSA compatible hardware is on the odroid?<br>
<br></blockquote><div><br></div><div>U-CONTROL UCA222<br></div><div><br></div><div><a href="https://www.music-group.com/Categories/Behringer/Computer-Audio/Audio-Interfaces/UCA222/p/P0A31">https://www.music-group.com/Categories/Behringer/Computer-Audio/Audio-Interfaces/UCA222/p/P0A31</a><br></div><div><br></div><div><br></div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
In any event, the short of it is that ALSA is the driver for the audio<br>
hardware, so whichever device has speakers connected better be the device<br>
where you are giving the driver argument as "-dalsa" or you won't hear any<br>
sound.<br>
<span class="gmail-"><br>
> Actually, if can be of any help, I also tried to set the mac<br>
> as master and the linux board as the slave.<br>
<br>
</span>That should be the correct configuration if you want to connect the mac to<br>
an amplifier and speakers and you want the linux odroid system to just<br>
send digital audio information to the mac and have the mac play the audio.<br>
<span class="gmail-"><br></span></blockquote><div><br></div><div>Ok, but my goal is to have a networked configuration where the linux odroid system broadcast </div><div>audio to various connected devices. My understanding is that the odroid must be the master and</div><div>all the other devices receiving and reproducing the audio signal must be the slave. Am I wrong?</div><div><br></div><div><br></div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><span class="gmail-">
>  The result is that they seem to communicate,<br>
> although jack on the mac crashes giving the error<br>
> "Floating point exception: 8":<br>
<br>
</span>Can you run local jack aware software on the mac and play audio through<br>
the mac audio hardware?  Make sure you can get that working first before<br>
trying to bring networking into it.<br>
<span class="gmail-"><br></span></blockquote><div><br></div><div><br></div><div>Of course, I successfully used jack2 on the mac, it perfectly works (for instance with Audacity or Max/MSP 7).</div><div><br></div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><span class="gmail-">
> Default input and output devices are not the same !!<br>
> Cannot open default device in duplex mode, so aggregate<br>
> default input and default output<br>
> Separated input = 'Built-in Microphone'<br>
> Separated output = 'Built-in Output'<br>
<br>
</span>If you aren't going to use "Built-in Microphone" as an input device, you<br>
could start with playback only.  That should get rid of the "input and<br>
output devices are not the same !!" warning.   I think that would be -P<br>
passed the coreaudio driver parameters, or maybe -Cno -Pyes, the manual<br>
page is a little vaguely<br>
worded and I don't have a machine with coreaudio to play with to try it out.<br>
<br>
That is assuming you want to use the built in audio for the output,<br>
otherwise the wrong device is selected and you need to sort that out<br>
first.<br></blockquote><div><br></div><div><br></div><div>Ok I will try tomorrow and report to you. At the moment yes the mac's built in audio for the output  is what I want to test.</div><div><br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<span class="gmail-"><br>
<br>
> Takes physical 2 audio output(s) for slave<br>
> Takes physical 0 MIDI input(s) for slave<br>
> Takes physical 0 MIDI output(s) for slave<br>
> Sending parameters to ...<br>
> Floating point exception: 8<br>
<br>
</span>This is a modern mac with Intel processor?  Just making sure.  I don't<br>
have a mac myself, but just in case someone else can help, which OS<br>
version?<br></blockquote><div><br></div><div><br></div><div>Yes, I am using the very last macbook pro, with the very last and updated OS X (version 10.12.4).</div><div><br></div><div><br></div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<br>
This is the default multicast address reported by the master:<br>
<span class="gmail-">> Starting Jack NetManager<br>
> Listening on '<a href="http://225.3.19.154:19000" rel="noreferrer" target="_blank">225.3.19.154:19000</a>'<br>
<br>
</span>But you specified a unicast address in the place where you would usually<br>
specify a multicast address different than default:<br>
<span class="gmail-">> On the slave (linux board):<br>
> jackd -R -d net -a 192.168.117.129 -p 19000<br>
<br>
</span>From the walk-through you linked:<br>
Parameters for driver 'net' (all parameters are optional):<br>
        -a, --multicast_ip      Multicast Address (default: 225.3.19.154)<br>
<br>
You are giving a unicast address as the argument for the multicast address<br>
to use.  Why did you think you needed to do that?<br>
It seems the unicast address was ignored, because there is a message later<br>
showing connected to macbook.<br></blockquote><div><br></div><div><br></div><div>I don't have the setup right now, I will re-test tomorrow, but if I correctly remember, I used the address 192.168.117.129</div><div>(which is the static address I gave to the mac) because simply using  jackd -R -d net (which takes the default) did not work.</div><div><br></div><div><br></div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<span class="gmail-"><br>
> Maximum number of input ports is reached for application ref = 0<br>
> driver: cannot register port for system:midi_playback_769<br>
> Can't allocate ports.<br>
> Initing net driver fails...<br>
<br>
</span>That looks like the net backend driver is trying to register MIDI  ports<br>
for some reason, but the documentation says the default is no MIDI ports.<br>
>From the walk-through page "The default configuration is a simple stereo<br>
use, with no midi port."  Maybe one of the jack2 devs can comment on<br>
whether the behavior and documentation have diverged.<br></blockquote><div><br></div><div><br></div><div>Yes it would be great if any jack developer could comment on this. I am available to contribute to the jack community </div><div>by doing some tests on the mac if needed.</div><div><br></div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<br>
If you do get rid of the internal microphone as an input port, you should<br>
probably set the net backend to not expect any input ports.   I think that<br>
would be adding -C 0 -P 2 to the arguments after -dnet.<br>
I guess for good measure you could add -i 0 -o 0 to specify 0 MIDI in and<br>
out ports, although that is supposed to be the default.<br>
<span class="gmail-HOEnZb"><font color="#888888"><br></font></span></blockquote><div><br></div><div>I will try tomorrow and report. </div><div><br></div><div><br></div><div>However, this is not the main goal I want to pursue, as I want to send audio from the linux odroid board.</div><div>Any further insight on this?</div><div><br></div><div><br></div><div>Cheers</div><div><br></div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><span class="gmail-HOEnZb"><font color="#888888">
--<br>
Chris Caudle<br>
<br>
<br>
______________________________<wbr>_________________<br>
Jack-Devel mailing list<br>
<a href="mailto:Jack-Devel@lists.jackaudio.org">Jack-Devel@lists.jackaudio.org</a><br>
<a href="http://lists.jackaudio.org/listinfo.cgi/jack-devel-jackaudio.org" rel="noreferrer" target="_blank">http://lists.jackaudio.org/<wbr>listinfo.cgi/jack-devel-<wbr>jackaudio.org</a><br>
</font></span></blockquote></div><br></div></div>