This function records an audio file or MMIO compound audio file element. mciRecordAudioFile is a 32-bit function that is also provided as a 16-bit entry point.

The mciRecordAudioFile function requires a message queue and focus window.

#define INCL_MACHDR
#define INCL_MCIOS2
#include <os2.h>

HWND     hwndOwner;  /*  Window handle. */
PSZ      pszFile;    /*  Pointer to file name. */
PSZ      pszTitle;   /*  Recorder window title. */
ULONG    ulFlags;    /*  Reserved. */
ULONG    rc;         /*  Return code. */

rc = mciRecordAudioFile(hwndOwner, pszFile,
       pszTitle, ulFlags);


[Back] [Next]