/*
 * ProPort.c
 *		User Primitive Code for MODE on Objectworks\Smalltalk R4
 *			Interface to the SPARCstation-2 /dev/dsp driver 
 *			with Ariel_ S56/S56X and ProPort audio interfaces
 *
 * Copyright (C) 1991, Stephen Travis Pope, Nomad Computer Music Research.
 *		All rights reserved.
 *
 *			V4.0: File created: 8/24/91--stp
 */
#include "userprim.h"					/* Basic ST80 UP header */
#include "MODE_Primitives.h"		/* Declarations of MODE UP fcns */

/***
void ModeMixRun (receiverMix, elements, resultSound)
upHandle receiverMix, elements, resultSound; {
	upHandle uiBytes, element, samples, startSample, stopSample;
	int count, i, sample, start, stop;

	ModeCheckSound(resultSound, uiBytes)
	count = UPindexVarSize(elements);
	if ((count <= 0) || (count >= 100))
		UPfail(-4);
}
***/

/*******************************************************************************/
/*		----ProPort>>play/record			*/
/*		open				*/
/*			"Open the Pro Port."				*/
void ModeProPortOpen (/* upHandle receiverProPort */);

/*		close				*/
/*			"Close the Pro Port down."		*/
void ModeProPortClose (/* upHandle receiverProPort */);

/*		play: aSound		*/
/*			"Play the argument on the receiver."		*/
/*			"DSP-play"		*/
void ModeProPortPlay (/* upHandle receiverProPort, sound */);

/*		record: aSound		*/
/*			"Record into the argument via the receiver."		*/
/*			"DSP-record"	*/
void ModeProPortRecord (/* upHandle receiverProPort, sound */);

/*		getProps: anArray	*/
/*			"Get the property array of the port into the given value array."	*/
void ModeProPortGetProps (/* upHandle receiverProPort, propArray */);

/*		setProps: anArray	*/
/*			"Set the property array of the port from the given value array."	*/
void ModeProPortSetProps (/* upHandle receiverProPort, propArray */);

