mdSetOrigin man page on IRIX

Man page or keyword search:  
man Server   31559 pages
apropos Keyword Search (all sections)
Output format
IRIX logo
[printable version]



mdSetOrigin(3dm)					      mdSetOrigin(3dm)

NAME
     mdSetOrigin mdGetOrigin - control origin time for synchronization

SYNOPSIS
     #include <dmedia/midi.h>

     int mdSetOrigin(MDport port, long long origin)

     long long mdGetOrigin(MDport port)

DESCRIPTION
     mdSetOrigin sets an Unadjusted System Time or UST (see syssgi(2)) that is
     used for all time based calculations on the port. By default, the origin
     time for a port is the time that it was opened.  It may be reset with
     mdSetOrigin.

     mdSetOrigin takes as an argument a 64 bit UST, which represents the time
     that you wish to calculate time stamps from.  If 0 is used, mdSetOrigin
     uses the current UST.  If the time used is greater than the current
     system time (eg, in the future where we will all be famous for 15
     minutes), any subsequent messages sent out will have their time stamps
     reckoned according to that time.

     If a time value less than zero is used, the origin time is set to that
     number of nanoseconds before the current time.  This allows streams of
     files to be re-started in the middle of the data.

RETURN VALUE
     mdSetOrigin returns 0 on success, -1 on error.  The following error codes
     are expected:

     ENXIO    - Invalid port

     ENINVAL  - An undefined operation was called.

SEE ALSO
     mdSettimebuffer(3dm), mdSetStampMode(3dm), syssgi(2)

BUGS
     The amusing feature of setting the origin time into the future has not
     yet been tested.

									Page 1

[top]

List of man pages available for IRIX

Copyright (c) for man pages and the logo by the respective OS vendor.

For those who want to learn more, the polarhome community provides shell access and support.

[legal] [privacy] [GNU] [policy] [cookies] [netiquette] [sponsors] [FAQ]
Tweet
Polarhome, production since 1999.
Member of Polarhome portal.
Based on Fawad Halim's script.
....................................................................
Vote for polarhome
Free Shell Accounts :: the biggest list on the net