[ < ] | [ > ] | [ << ] | [ Up ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
The new functions setifreq
and getifreq
allow an
application to choose any convenient sampling frequency for reading
input signals. Samples read from signal files using getvec
are
buffered, resampled, and delivered to the calling application as if the
original signals had been sampled at the desired frequency. Times
expressed in sample intervals passed to or from other WFDB library
functions (getann
, putann
, mstimstr
, timstr
,
and strtim
) are rescaled as needed to match intervals
corresponding to the chosen frequency. Thanks to Pat Hamilton for the
inspiration!
The WFDB library now records the base time with millisecond precision
(previous versions did so with one-second precision), and `xform'
provides starting times to the library function setbasetime
with
millisecond precision. Thanks to Allavatam Venugopal for providing
examples that illustrated the need for these features.
Fixed deskewing buffer initialization in getframe
, broken by the
10.2.0 update, which introduced an infinite loop when reading a record
that requires skew correction starting at sample 0. Thanks to Andrew
Walsh for finding an example that triggered this bug.
Fixed rounding errors in adumuv
, muvadu
, and physadu
.
Previous versions rounded negative values toward zero; to obtain consistent
conversions, however, it is necessary to round all values down (e.g., from
-1.5 to -2 rather than up to -1).
Fixed a memory leak in wfdb_fclose
(in `lib/wfdbio.h'). Thanks to
Ion Gaztañaga.