home *** CD-ROM | disk | FTP | other *** search
/ Point Programming 1 / PPROG1.ISO / c / pas_sdk2 / pas / inc / pcmio.h < prev    next >
Encoding:
Text File  |  1992-10-01  |  2.6 KB  |  87 lines

  1. /*$Author:   DCODY  $*/
  2. /*$Date:   01 Oct 1992 12:15:20  $*/
  3. /*$Header:   X:/sccs/inc/pcmio.h_v   1.4   01 Oct 1992 12:15:20   DCODY  $*/
  4. /*$Log:   X:/sccs/inc/pcmio.h_v  $
  5.  * 
  6.  *    Rev 1.4   01 Oct 1992 12:15:20   DCODY
  7.  * added RecordThisBlock/PlayThisBlock/QueueThisBlock & parameter changes
  8.  * 
  9.  *    Rev 1.3   23 Sep 1992 10:31:12   DCODY
  10.  * added new function prototypes
  11.  * 
  12.  *    Rev 1.2   04 Sep 1992 16:40:52   DCODY
  13.  * 
  14.  *    Rev 1.1   25 Jun 1992 23:26:20   DCODY
  15.  * PAS2 update
  16.  * 
  17.  *    Rev 1.0   15 Jun 1992 09:58:46   BCRANE
  18.  * Initial revision.
  19. */
  20. /*$Logfile:   X:/sccs/inc/pcmio.h_v  $*/
  21. /*$Modtimes$*/
  22. /*$Revision:   1.4  $*/
  23. /*$Workfile:   pcmio.h  $*/
  24.  
  25. ;   /*\
  26. ;---|*|----====< pcmio.h >====----
  27. ;---|*|
  28. ;---|*| This is the header file for all the different PCMIOx.xxx modules
  29. ;---|*|
  30. ;---|*| Copyright (c) 1991, Media Vision, Inc.    All Rights Reserved.
  31. ;---|*|
  32. ;   \*/
  33.  
  34. ;   /*\
  35. ;---|*|----====< error that may happen... >====----
  36. ;   \*/
  37.  
  38. #define PCMIOERR_SAMPLERATE  2         /* bad sample rate requested    */
  39. #define PCMIOERR_OPENFILE    3         /* error opening the output file    */
  40. #define PCMIOERR_OPENPCM     4         /* error starting the PCM code    */
  41. #define PCMIOERR_NOMEM         5         /* error starting the PCM code    */
  42. #define PCMIOERR_BADDMA      6         /* bad requested DMA number    */
  43. #define PCMIOERR_BADIRQ      7         /* bad requested IRQ number de    */
  44. #define PCMIOERR_FILEFULL    8         /* cannot write data to the file    */
  45.  
  46.     /* special error code for the RECORD.EXE program */
  47.  
  48. #define PCMIOERR_HELPS       1       /* not enough command line data    */
  49.  
  50.  
  51. ;   /*\
  52. ;---|*|----====< PCMIOC.C >====----
  53. ;   \*/
  54.  
  55.     void ClosePCMBuffering    ( );
  56.     int  ContinueFileInput    ( );
  57.     int  ContinueBlockInput ( char far * );
  58.     int  ContinueFileOutput ( );
  59.     int  ContinueBlockOutput( char far * );
  60.     int  OpenPCMBuffering    ( int,    int, int, int );
  61.     int  PCMState        ( long, int, int, int );
  62.     int  PlayThisBlock    ( char far*, unsigned long, void (far *)() );
  63.     int  QueueThisBlock    ( char far*, unsigned long, void (far *)() );
  64.     int  RecordThisBlock    ( char far*, unsigned long, void (far *)() );
  65.     int  StartFileInput    ( FILE * );
  66.     int  StartBlockInput    ( );
  67.     int  StartFileOutput    ( FILE *, long );
  68.     int  StartBlockOutput    ( char far * );
  69.     int  SyncCallBack    ( void (far *)() );
  70.     void StopDMAIO        ( );
  71.  
  72.  
  73. ;   /*\
  74. ;---|*|----====< PCMIOA.ASM >====----
  75. ;   \*/
  76.  
  77.     void BackgroundInit    ( int, int );
  78.     char far * FlushBuffer    ( char far *, int );
  79.     int  StartTheDMAOutput    ( void (*)() );
  80.     int  StartTheDMAInput    ( void (*)() );
  81.  
  82.  
  83. ;   /*\
  84. ;---|*| end of pcmio.h
  85. ;   \*/
  86.  
  87.