YSetCycle(3)

NAME

YSetCycle - Y server cycle interval setting

SYNTAX

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

int YSetCycle(
YConnection *connection,
long us
)

ARGUMENTS

connection
Specifies the connection to the Y server, obtained by a call to YOpenConnection.
us Specifies the new cycle interval in microseconds.

DESCRIPTION

The YSetCycle function sets the current cycle interval.

RETURN VALUE

The YSetCycle function returns -1 on error, 0 on success.

EXAMPLE

#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)
YSetCycle(con, 30000);
YCloseConnection(con, False);
return(0);
}

SEE ALSO

YCalculateCycle(3) YChangeAudioModePreset(3) YSetAudioModeValues(3)
Copyright © 2010-2025 Platon Technologies, s.r.o.           Home | Man pages | tLDP | Documents | Utilities | About
Design by styleshout