Re: Error on uos_AddIntoDevOut

Posted by LemonParty on
URL: http://uos-forum.108.s1.nabble.com/Error-on-uos-AddIntoDevOut-tp1522p1526.html

This is how I load library:
  Result:= uos_loadlib(nil, nil, PChar(ProgramsDir + 'dynlibs\Windows\64bit\LibMpg123-64.dll'), nil, nil, nil) = 0;
Result is true, I checked.

And this is how I load files. Checks not present, but I checked with debugger that first two functions work fine. FPlayerIndexes[i] = 1 in this case:
  uos_CreatePlayer(FPlayerIndexes[i]);
  InputIndex:= uos_AddFromFile(FPlayerIndexes[i], PChar(FTimerFrames[i].Sound), -1, -1, -1);
  {$if Defined(CPUARM) or Defined(CPUAARCH64)}
  // need a lower latency
  OutputIndex:= uos_AddIntoDevOut(FPlayerIndexes[i], -1, 0.3, -1, -1, -1, -1, -1) ;
  {$Else}
  OutputIndex:= uos_AddIntoDevOut(FPlayerIndexes[i], -1, -1, -1, -1, -1, -1, -1); {at this line occurs an error}
  {$EndIf}