[ < ] | [ > ] | [ << ] | [ Up ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
Fixed bugs in `lib/signal.c' that caused improper accounting of signal
group numbers when reading from two or more records at the same time (as in
`nst'), a bug that caused a segfault in `nst', and a bug that
referenced uninitialized memory in newheader
if nsig
= 0.
The WFDB Software Package has been ported to Mac OS X (Darwin), version 10.2 (the port should also work under 10.1 but this has not been tested and will not be supported).
It is now possible to generate a shared WFDB library (DLL) under MS-Windows using Cygwin/gcc.
Added functions sample
and sample_valid
to the WFDB library
(in `lib/signal.c'). sample(s, t)
returns the sample at
time (sample number) t
from signal s
, handling all
necessary buffering internally and allowing the caller to treat the
signal file as a virtual array of randomly accessible samples.
sample_valid
can be invoked to check if the most recent value
returned by sample
was valid (e.g., to see if the end of the
input was reached). For an example of the use of these functions, see
`app/wqrs.c'.