int dbgetskew(DB_Signal s)
Return:
This function returns the skew (as recorded in the `header'
file, but in frame intervals rather than in sample intervals) of the
specified input signal, or 0 if s is not a valid input signal
number. Since sample vectors returned by getvec
or
getframe
are already corrected for skew, dbgetskew
is
useful primarily for programs that need to rewrite existing
`header' files, where it is necessary to preserve the previously
recorded skews. The following code fragment demonstrates how this can
be done:
char *record; int nsig; DB_Signal s; static DB_Siginfo siarray[DB_MAXSIG]; ... if ((nsig = isigopen(record, siarray, DB_MAXSIG)) < 1) exit(1); for (s = 0; s < nsig; s++) { dbsetskew(s, dbgetskew(s)); dbsetstart(s, dbgetstart(s)); } setheader(record, siarray, (unsigned)nsig);
Note that this function does not determine the skew between
signals; the problem of doing so is not possible to solve in the
general case. dbgetskew
merely reports what has previously been
determined by other means and recorded in the `header' file for the input
record. (This function was first introduced in DB library version 9.4.)
Go to the first, previous, next, last section, table of contents.