<div dir="ltr"><div><div><div><div><div><div><div><div>Hello,<br><br></div>I've been playing around with Jack/Netjack and the Opus codec in order to setup a "low latency" WiFi audio stream at home.<br><br></div>After compiling Opus with custom modes and Jack2 with Opus support (both from the master branches of the respective repositories), I was able to run the Master-Slave setup:<br><br></div>Master.<br>jackd -R -d alsa -d hw:1 -D=false -r44100 -S -n16<br>jack_load netmanager<br><br></div>Slave:<br>jackd -R -d net -C0 -P2 -o0 -i0 -O320 -M1200 -l5<br><br></div>+ jack_connect to route the net input on the master to the speakers<br><br></div>But as I was getting quite frequent audio deterioration, with the master showing messages like these:<br><br>Packet(s) missing from... -1 1<br>Wrong packet type : a<br>JackEngine::XRun: client = SLAVE_HOSTNAME was not finished, state = Running<br>JackEngine::XRun: client netmanager finished after current callback<br>JackAudioDriver::ProcessGraphAsyncMaster: Process error<br>Wrong packet type : a<br>Packet(s) missing from... -1 1<br>JackAudioDriver::ProcessGraphAsyncMaster: Process error<br>JackEngine::XRun: client = SLAVE_HOSTNAME was not finished, state = Triggered<br><br>I've thought that maybe I should just try increasing the network latency argument on the slave, as, for my use case, I'm happy with latency < 200 ms. <br><br>By using something like -l30 (the maximum I'm allowed to set) on the slave I was able to greatly diminish the Process errors (I still get the same lots of wrong packet type and packet missing messages though) but it didn't  fix the audio artifacts. Actually sometimes this change makes the playback even worse with ms pauses every second.<br><br>So I would like to know if there is any other way to relax the low latency requirement in order to improve playback reliability. Or is there some kind of incompatibility in the configuration I'm passing to both endpoints that is causing these problems?<br><br></div>Thanks!<br></div>AndrĂ©.<br></div>