[Search for users] [Overall Top Noters] [List of all Conferences] [Download this site]

Conference hydra::amiga_v1

Title:AMIGA NOTES
Notice:Join us in the *NEW* conference - HYDRA::AMIGA_V2
Moderator:HYDRA::MOORE
Created:Sat Apr 26 1986
Last Modified:Wed Feb 05 1992
Last Successful Update:Fri Jun 06 1997
Number of topics:5378
Total number of notes:38326

4470.0. "Sampler on the par: port." by STKHLM::REVEMAN ("Scan his brain, it must be there somewhere...") Wed Jan 30 1991 07:31

	
	Help, has anybody out there read the par: port with a 
	sampler on it?

	Is there any example programs out there to show how it's
	made?

	What I want to do is simply a prorgram that reads n number
	of bytes from my sampler and stores them in a vector.

	Don't hesitate to reply, pointers, answers suggestions
	anything...

			Hopefully...
				     /Jojo

T.RTitleUserPersonal
Name
DateLines
4470.1Read the hardware direct.MADRE::MWMWed Jan 30 1991 14:5116
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