Hi, I also use DisplayVideoFrameSync and WriteAudioSamplesSync methods.
I'm using an internal timer for
frame duration implemented as absolute clock with
- Code: Select all
clock_nanosleep
My question is: is there a way to application to wait
for next clock interval for the specified video mode and immediately return, as in BlueFish SDK's
- Code: Select all
wait_output_video_synch(.., ..);
method.
Which causes the application wait next frame interval (I believe this is implemented as in h/w that generates interrupt when vertical retrace happens).
And also: is my method optimal (clock_nanosleep to wait for 1 frame_duration) ?
My system is Ubuntu Linux Server and I don't use Scheduled output for various reasons.
Thanks.