YSyncAll(3)

YSyncAll3

Sync y server execution

Usage

#include <Y2/Y.h>
#include <Y2/Ylib.h>

void YSyncAll(

YConnection *connection,

Boolean block
)

Arguments

connection

Specifies the connection to the Y server, obtained by a call to YOpenConnection.

block

This value must always be True.

Overview

The YSyncAll function blocks client execution untill the Y server has caught up. It gaurantees that sound play timming will be up to date with resolution (margin of error) as much as the current buffer fragment size of the Y server's current Audio (but never earlier).

The blockage duration of this call can be any time length, and the Y client application should be prepared for that.

Note that calling this function is an extreme performance load on the Y client application, in most cases you can get through without calling this function at all.

Examples

#include <stdio.h>
#include <Y2/Y.h>
#include <Y2/Ylib.h>

int main(int argc, char *argv[])
{

YConnection *con = YOpenConnection(

"/usr/sbin/starty",

"127.0.0.1:9433"

);

if(con == NULL)

return(1);

printf("Syncing...\n");

YSyncAll(con, True);

printf("Sync done!\n");

YCloseConnection(con, False);

return(0);
}

Releases

5 releases since Debian 3.0 (Woody); the text changed 1 time.

  1. 3.0
  2. 3.1–6.0

From liby-dev 2.14.5-7 in Debian 6.0 (Squeeze). Parsed by carta from the page's man source.