home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / mmpm21tk.zip / TK / H / MCIAPI.H < prev    next >
C/C++ Source or Header  |  1993-01-25  |  4KB  |  77 lines

  1. /****************************************************************************/
  2. /*                                                                          */
  3. /* Module Name: MCIAPI.H                                                    */
  4. /*                                                                          */
  5. /* This is the multimedia include file that has the typedefs, defines and   */
  6. /* function prototyes for High-Level MCI Interfaces                         */
  7. /*                                                                          */
  8. /* Copyright (c) International Business Machines Corporation 1992, 1993     */
  9. /*                        All Rights Reserved                               */
  10. /*                                                                          */
  11. /****************************************************************************/
  12. /* The folowing symbols are used in this file for conditional sections.     */
  13. /*                                                                          */
  14. /*   #define:                To include:                                    */
  15. /*                                                                          */
  16. /*                                                                          */
  17. /****************************************************************************/
  18.  
  19. /* High-Level Macro Service API Routines */
  20.  
  21. #ifndef __MCIAPI_H
  22. #define __MCIAPI_H
  23.  
  24. #ifndef INCL_32
  25. #define     mciPlayFile        mci16PlayFile
  26. #define     mciPlayResource    mci16PlayResource
  27. #define     mciRecordAudioFile mci16RecordAudioFile
  28. #define     mmioRemoveElement  mmio16RemoveElement
  29. #define     mmioFindElement    mmio16FindElement
  30. #endif
  31.  
  32.  
  33. ULONG EXPENTRY mciPlayFile (HWND hwndOwner,        /* Ownerwindow */
  34.                             PSZ  pszFile,          /* File */
  35.                             ULONG ulFlags,         /* Flags */
  36.                             PSZ  pszTitle,         /* Title */
  37.                             HWND hwndViewport);    /* Viewport Window */
  38.  
  39. ULONG EXPENTRY mciPlayResource (HWND hwndOwner,       /* Owner Window */
  40.                                 HMODULE hmod,         /* Module */
  41.                                 ULONG resType,        /* Resource Type */
  42.                                 ULONG resID,          /* Resource ID */
  43.                                 ULONG ulFlags,        /* Flags */
  44.                                 PSZ  pszTitle,        /* Title */
  45.                                 HWND hwndViewport);   /* Viewport Window */
  46.  
  47. ULONG EXPENTRY mciRecordAudioFile (HWND hwndOwner, PSZ pszFile, PSZ pszTitle, ULONG ulFlags);
  48.  
  49. /* Audio Macro Service Routines */
  50.  
  51. ULONG EXPENTRY mmioRemoveElement (PSZ pszFileElement, ULONG ulFlag); /* c:\path\file+element */
  52.  
  53. ULONG EXPENTRY mmioFindElement (ULONG ulCode,       /* Find Code */
  54.                                PSZ   pszElement,   /* Element */
  55.                                ULONG ulElementLen, /* Element Buffer Length */
  56.                                PSZ   pszFile,
  57.                                ULONG ulReserved
  58.                                );     /* Compound File */
  59.  
  60. #define MMIO_FE_FINDFIRST       1
  61. #define MMIO_FE_FINDNEXT        2
  62. #define MMIO_FE_FINDEND         3
  63. #define MMIO_FE_FINDELEMENT     4
  64.  
  65. #define MMIO_RE_COMPACT         1
  66.  
  67.  
  68. /* ulFlags  for mciPlayFile */
  69.  
  70. #define MCI_OWNERISPARENT   0x0001      /* digital and overlay                 */
  71. #define MCI_STOPACTIVE      0x0002      /* stop playing whatever is playing    */
  72. #define MCI_ASYNCRENDEZVOUS 0x0004      /* play and return immediately         */
  73. #define MCI_RENDEZVOUS      0x0008      /* wait til prev is finished then play */
  74. #define MCI_ASYNC           0x0010      /* no syncup will be done              */
  75.  
  76. #endif
  77.