| Assuming you want an accurate sample frequency, the only way to do this is
to read the bytes direct from the hardware. Make sure you allocate the
appropriate resources first, just to guard against trying to do this
while something else is dealing with the port (I know, that seems like
a silly thing to do - but a bug is a bug).
Perfect Sound (the software) is on Fish Disk 50, and shows you how to read
that style of sampler (except for allocating the resource). However, that's
a pretty poor piece of code to copy, so use the method, not the code.
Note that not all digitizer are created equally. Many follow the Perfect
Sound (1 & 2) model. Others do things differently (like, say, Perfect
Sound 3), and the code above won't work. If you don't know, try the PS
software on it and see.
<mike
|