Go to the first, previous, next, last section, table of contents.


sampfreq

DB_Frequency sampfreq(char *record)

Return:

(DB_Frequency)>0.
Success: the returned value is the sampling frequency in Hz
(DB_Frequency)-1.
Failure: unable to read `header' file
(DB_Frequency)-2.
Failure: incorrect `header' file format

This function determines the sampling frequency (in Hz) for the record specified by its argument. If its argument is NULL, sampfreq returns the currently defined sampling frequency, if any. It also sets the internal variables used by the time-conversion functions (see section [ms]timstr) for converting between sample intervals and seconds. See section Example 3: An Annotation Printer, for an illustration of the use of sampfreq. Note that the value returned by sampfreq for a multifrequency record depends on the current getvec mode (see section setgvmode).


Go to the first, previous, next, last section, table of contents.



George B. Moody (george@hstbme.mit.edu)