[Verse-dev] Audio streaming and verse_callback_update()

eskil at obsession.se eskil at obsession.se
Fri Dec 2 12:30:09 CET 2005


Hi

> Hi Samuel, sorry for not replying sooner. I'm not working full-time
> in the Uni-Verse project at the moment. I  also guess I was hoping
> for Eskil to pick this up, since it's a core protocol question and
> he still is the one who knows those parts best. Also, I'm not working

Sorry as you may have noticed i have had some Mail problems but i hope they will
be fixed now.

> No, I can't say that I have. Eskil tends to favor very low values in
> his applications, I've seen the values 30000, 3000 and 0 being used.

If you use 0 the application will eat all CPU unless there are some other sysyem
commands in your app that lets the operating system task switch. Since my apps
use GL i can set it to 0 since the display interaction and frame sync will
provide me with a plase for the syetem to exit my tasks. For most of my command
line applications i use a much higher value. so make sure that its not an issiue
of one task hoging the CPU.

However i dont think that the callback interval should be a problem. the
callback update will only wait if there is no incomming data available. If
there is, it will exit as soon as it has run the callbacks.

In the sending end it might be a good idea of having very short callback update
intervales to send at a steady stream. But there is already code to combat this
problem. if you set a very large callback value it will not listen for incomming
packets that long, it will actiualy cut that wait up in shorter intervalls and
send data in betwean them. You can modefy this behaviour by changeing:
V_CON_MAX_MICROSECOND_BETWEEN_SENDS in v_connection.c to a lower value.

Mail back if this helps or not. and if it does perhaps that is something we need
to tweek, if it doesnt i have some other ideas.

Cheers

E


More information about the Verse-dev mailing list