Re: Trixie trouble

Posted by fredvs on
URL: http://uos-forum.108.s1.nabble.com/Trixie-trouble-tp1502p1505.html

Hello Henk Pragt

> Is the latency just a start delay?

See https://www.portaudio.com/docs/latency.html
"What is Latency?
Latency is basically longest time that you have to wait before you obtain a desired result. For digital audio output it is the time between making a sound in software and finally hearing it."

For example, with the Rpi 2 b, I get better sound using this:
  {$if defined(cpuarm) or defined(cpuaarch64)}
              // need a lower latency
              OutputIndex1 := uos_AddIntoDevOut(PlayerIndex1, -1, 0.3, -1, -1, -1, -1, -1) ;
       {$else}
              OutputIndex1 := uos_AddIntoDevOut(PlayerIndex1, -1, -1, -1, -1, -1, -1, -1);
       {$endif}

> I noticed that the values in the uos_inputindex and uos_outputindex always remain 0. Is that normal?

The input/output index is the index of the input/output in the array, you may have many different input/output for the same player.

If you only have one input, the index will be 0, the same for output.
So yes it is normal and the input/output were correctly added.

If you get -1 as result, there was a error when trying to add the input/output.