Re: It freezes before the sound plays

Posted by fredvs on
URL: http://uos-forum.108.s1.nabble.com/It-freezes-before-the-sound-plays-tp901p902.html

Hello RadekXxX and welcome in uos forum.

>  When I call UOS_Play, the audio file starts playing in about 4 minutes. The file being played is about 3 seconds.

Sorry but I need some more infos.
Does the player only start after 4 minutes and then plays only 3 seconds ?

That is indeed not ok.

How did you catch the debug log ?
Debugging is not possible with uos and sound-program in general.
The processor needs lot of resource for audio and debugging will have bad impact on latency.

Did you try to run your program without debugger ?

Do you have tested the demos from https://github.com/fredvs/uos/examples ?
There are also lpi project files ( CodeTyphon can convert Lazarus project into CT project )

Is the uos demo SimplePlayer working on your Rpi ?

Fre;D