@Fred vS: any particular example touching latency in mind?
The latency value is seconds? milliseconds? foo units? :)
Hi!
I'm using UOS (with PortAudio lib) to route MicIn to SpkOut:
@Fred vS:
Yes, SimplePlayer runs and is okay. Except "play revers" where it gets jumpy.
@Fred vS:
Yes, SimplePlayer runs and is okay. Except "play revers" where it gets jumpy.
Ha, ok, ( hum, jumpy with what kind of audio files, mp3, wav, ogg, ... ?)
And what about SimpleRecorder, is the mic-input to output sound ok ?
And what about SimpleRecorder, is the mic-input to output sound ok ?
ogg. plays backwards till it reaches 0:00:00.743, jumps to 0:00:01.114, plays backwards... and so on...
SimpleRecorder: I'd say latency is ~1/4s, just like in my program.
@Fred vS:
FYI: as the compiler threw an error not knowing which overloed function to use, I made this change in uos.pas:I added comp() to get it to work.
if StreamIn[x].AACI.lwDataLen > (StreamIn[x].AACI.BitsPerSample div 8) then StreamIn[x].Data.outframes := trunc(comp(StreamIn[x].AACI.lwDataLen) Div (StreamIn[x].AACI. BitsPerSample Div 8))
SimpleRecorder: I'd say latency is ~1/4s, just like in my program.
Sorry but I did not understand. :-[
Is the sound ok or not?
@Fred vS:
FYI: as the compiler threw an error not knowing which overloed function to use, I made this change in uos.pas:I added comp() to get it to work.
if StreamIn[x].AACI.lwDataLen > (StreamIn[x].AACI.BitsPerSample div 8) then StreamIn[x].Data.outframes := trunc(comp(StreamIn[x].AACI.lwDataLen) Div (StreamIn[x].AACI. BitsPerSample Div 8))
Please give the error you get from the compiler.
Here you go:
uos.pas(10381,43) Error: Can't determine which overloaded function to call
Here you go:
uos.pas(10381,43) Error: Can't determine which overloaded function to call
Hum, here no problems.
What version of uos are you using?
The last is this: https://github.com/fredvs/uos/archive/refs/heads/main.zip
What example are you compiling to get that error?
SimpleRecorder: I'd say latency is ~1/4s, just like in my program.
Sorry but I did not understand. :-[
Is the sound ok or not?
Sound is (and was alaways) okay, but processing time (=latency) is too long for my purposes. Between me speaking in the mic and hearing my voice in the speaker is ~250ms :o
ofc Win was and is a pain in the a** concerning these kind of things. :(
I'm using the latest ;)
Doesn't matter what example, as long as I use the unmodified uos.pas the compilers throws this error.
If you want a shorter delay, you have to play with the FramesCount parameter of input and output.
....
How little is the FramesCount how short is the delay.
And play also with the Latency parameter.
I agree it is not easy to find the right combination for each sound card (plus Windows is not the King of Latency).
If you want a shorter delay, you have to play with the FramesCount parameter of input and output.
....
How little is the FramesCount how short is the delay.
And play also with the Latency parameter.
I agree it is not easy to find the right combination for each sound card (plus Windows is not the King of Latency).
Values I tried so far only increase latency :(
If you want a shorter delay, you have to play with the FramesCount parameter of input and output.
....
How little is the FramesCount how short is the delay.
And play also with the Latency parameter.
I agree it is not easy to find the right combination for each sound card (plus Windows is not the King of Latency).
Values I tried so far only increase latency :(