[comp.sys.amiga] Sound sampler

lab@spader.UUCP (Lars Berntzon) (12/13/90)

Hello everyone !

Can any one please help me with a problem, i would like to read data
from my sampler in the C-code but i cant make it.
I've been using the parallel port device and it will only hang during read.
My sampler works fine with the AudiomasterII program but maybe that program
reads from the parallel port direct without going through the parallel.device .
Does any one know how to do this or have any clues ?
Thanks in advance!

Lars Berntzon					mcsun!sunic!spader!lab
CAP Gemini Logic Techno AB

a708@mindlink.UUCP (Gord Wait) (12/17/90)

It may be that you have to do a dummy read to start your sampler hardware
followed by a series of reads. (IE if your code only does one read, you get
nowhere..) I built myself a cheap sampler that works with the psound software.
My sampler chip Starts a new conversion from the handshake pulse that occurs
when you read the parallel port. The first read from my sampler would give me a
sample from the last time I used the thing. If non of this applies, maybe your
sampler requires a previous write to the parallel port before you read it...

Gord Wait

mwm@raven.relay.pa.dec.com (Mike (My Watch Has Windows) Meyer) (12/18/90)

   Can any one please help me with a problem, i would like to read data
   from my sampler in the C-code but i cant make it.
   I've been using the parallel port device and it will only hang during read.
   My sampler works fine with the AudiomasterII program but maybe that program
   reads from the parallel port direct without going through the
   parallel.device . Does any one know how to do this or have any clues ?

A sampler is _not_ a standard parallel port device. Parallel.device
will almost certainly be confused by it (it's always got data ready.).
You have to read the hardware direct, preferably using a CIA timer to
insure the correct sampling frequency. Be sure to allocate the
resources you're going to use before you touch them.

BTW, if you've got a perfect sound 3.0, you've got serious problems.

	<mike
--