/*$Author:   DCODY  $*/
/*$Date:   27 Jun 1992 19:28:42  $*/
/*$Header:   W:/sccs/inc/mvsound.h_v   1.2   27 Jun 1992 19:28:42   DCODY  $*/
/*$Log:   W:/sccs/inc/mvsound.h_v  $
 * 
 *    Rev 1.2   27 Jun 1992 19:28:42   DCODY
 * pcminfo proto type change
 * 
 *    Rev 1.1   25 Jun 1992 23:25:10   DCODY
 * flushed the trash prototypes
 * 
 *    Rev 1.0   15 Jun 1992 09:58:44   BCRANE
 * Initial revision.
*/
/*$Logfile:   W:/sccs/inc/mvsound.h_v  $*/
/*$Modtimes$*/
/*$Revision:   1.2  $*/
/*$Workfile:   mvsound.h  $*/

    /*\
    |*|----====< MVSOUND.H >====----
    |*|
    |*| This header file declares the prototypes for the library MVxLIB
    |*|
    |*| Copyright (c) 1991, Media Vision, Inc.	All Rights Reserved.
    |*|
    \*/


	void far *DMABuffer ( char far *, int, int );

	    /* Passes in a pointer and length to the buffer.		    */
	    /* Also flushes the buffer. Returns 0 or true DMA buffer ptr.   */

        int EnablePCMPlay ();

	    /* Sets up the PCM hardware for polled output		    */

	int EnablePCMRecord ();

	    /* Sets up the PCM hardware for polled input		    */

	char far *FindDMABuffer ( char huge *, int );

	    /* Takes a memory address & return the next 64k boundary	    */

	int InitPCM ();

	    /* Initializes the PCM code.				    */

        int PausePCM ( );

	    /* Pauses the PCM input or output				    */

	int PCMInfo ( long ,int, int, int );

	    /* Sets up the transfer rate & stereo/mono			    */

	int PCMPlay ();

	    /* Starts the DMA feeding the DAC				    */

	int PCMRecord ();

	    /* Starts the DMA reading the ADC				    */

	void RemovePCM ();

	    /* kills the PCM code.					    */

	void ResumePCM ();

	    /* restarts the PCM input or output 			    */

	int SelectDMA ( int );

	    /* Selects the DMA channel 1, or 3				    */

	int SelectIRQ ( int );

	    /* Selects the IRQ line for DMA control			    */
	    /* This routine outputs a new setting for a volume channel.     */

	void UserFunc (long(far*)());

	    /* Call back routine when Half way buffer is full/empty.	    */

    /*\
    |*| end of MVSOUND.H
    \*/


