1999-03-15 16:40:27 +01:00
|
|
|
/* -*- tab-width: 8; c-basic-offset: 4 -*- */
|
|
|
|
|
1999-02-13 13:38:09 +01:00
|
|
|
/*
|
|
|
|
* Digital video MCI Wine Driver
|
|
|
|
*
|
|
|
|
* Copyright 1999 Eric POUECH
|
|
|
|
*/
|
|
|
|
|
1999-04-22 17:26:11 +02:00
|
|
|
#include "winuser.h"
|
1999-02-13 13:38:09 +01:00
|
|
|
#include "multimedia.h"
|
|
|
|
#include "user.h"
|
|
|
|
#include "driver.h"
|
|
|
|
#include "xmalloc.h"
|
1999-05-02 16:32:27 +02:00
|
|
|
#include "debugtools.h"
|
1999-03-15 16:40:27 +01:00
|
|
|
#include "digitalv.h"
|
1999-02-13 13:38:09 +01:00
|
|
|
#include "options.h"
|
|
|
|
|
1999-04-19 16:56:29 +02:00
|
|
|
DECLARE_DEBUG_CHANNEL(mciavi)
|
|
|
|
|
1999-02-13 13:38:09 +01:00
|
|
|
typedef struct {
|
1999-05-02 12:21:49 +02:00
|
|
|
UINT wDevID;
|
1999-02-13 13:38:09 +01:00
|
|
|
int nUseCount; /* Incremented for each shared open */
|
|
|
|
BOOL16 fShareable; /* TRUE if first open was shareable */
|
|
|
|
WORD wNotifyDeviceID; /* MCI device ID with a pending notification */
|
|
|
|
HANDLE16 hCallback; /* Callback handle for pending notification */
|
1999-02-26 12:11:13 +01:00
|
|
|
HMMIO hFile; /* mmio file handle open as Element */
|
1999-03-15 16:40:27 +01:00
|
|
|
WORD wStatus; /* One of MCI_MODE_XXX */
|
1999-02-26 12:11:13 +01:00
|
|
|
MCI_OPEN_PARMSA openParms;
|
1999-02-13 13:38:09 +01:00
|
|
|
DWORD dwTimeFormat;
|
|
|
|
} WINE_MCIAVI;
|
|
|
|
|
|
|
|
#define MAX_MCIAVIDRV (1)
|
|
|
|
static WINE_MCIAVI MCIAviDev[MAX_MCIAVIDRV];
|
|
|
|
|
|
|
|
/*======================================================================*
|
|
|
|
* MCI AVI implemantation *
|
|
|
|
*======================================================================*/
|
|
|
|
|
1999-05-02 12:21:49 +02:00
|
|
|
/**************************************************************************
|
|
|
|
* AVI_drvGetDrv [internal]
|
|
|
|
*/
|
|
|
|
static WINE_MCIAVI* AVI_drvGetDrv(UINT16 wDevID)
|
|
|
|
{
|
|
|
|
int i;
|
|
|
|
|
|
|
|
for (i = 0; i < MAX_MCIAVIDRV; i++) {
|
|
|
|
if (MCIAviDev[i].wDevID == wDevID) {
|
|
|
|
return &MCIAviDev[i];
|
|
|
|
}
|
|
|
|
}
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
/**************************************************************************
|
|
|
|
* AVI_drvOpen [internal]
|
|
|
|
*/
|
|
|
|
static DWORD AVI_drvOpen(LPSTR str, LPMCI_OPEN_DRIVER_PARMSA modp)
|
|
|
|
{
|
|
|
|
int i;
|
|
|
|
|
|
|
|
for (i = 0; i < MAX_MCIAVIDRV; i++) {
|
|
|
|
if (MCIAviDev[i].wDevID == 0) {
|
|
|
|
MCIAviDev[i].wDevID = modp->wDeviceID;
|
|
|
|
modp->wCustomCommandTable = -1;
|
|
|
|
modp->wType = MCI_DEVTYPE_CD_AUDIO;
|
|
|
|
return modp->wDeviceID;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
/**************************************************************************
|
|
|
|
* MCIAVI_drvClose [internal]
|
|
|
|
*/
|
|
|
|
static DWORD AVI_drvClose(DWORD dwDevID)
|
|
|
|
{
|
|
|
|
WINE_MCIAVI* wma = AVI_drvGetDrv(dwDevID);
|
|
|
|
|
|
|
|
if (wma) {
|
|
|
|
wma->wDevID = 0;
|
|
|
|
return 1;
|
|
|
|
}
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
1999-02-13 13:38:09 +01:00
|
|
|
/**************************************************************************
|
|
|
|
* AVI_mciGetOpenDev [internal]
|
|
|
|
*/
|
|
|
|
static WINE_MCIAVI* AVI_mciGetOpenDev(UINT16 wDevID)
|
|
|
|
{
|
1999-05-02 12:21:49 +02:00
|
|
|
WINE_MCIAVI* wma = AVI_drvGetDrv(wDevID);
|
|
|
|
|
|
|
|
if (wma == NULL || wma->nUseCount == 0) {
|
1999-05-02 16:32:27 +02:00
|
|
|
WARN_(mciavi)("Invalid wDevID=%u\n", wDevID);
|
1999-02-13 13:38:09 +01:00
|
|
|
return 0;
|
|
|
|
}
|
1999-05-02 12:21:49 +02:00
|
|
|
return wma;
|
1999-02-13 13:38:09 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
static DWORD AVI_mciStop(UINT16 wDevID, DWORD dwFlags, LPMCI_GENERIC_PARMS lpParms);
|
|
|
|
|
1999-03-15 16:40:27 +01:00
|
|
|
/***************************************************************************
|
|
|
|
* AVI_mciOpen [internal]
|
|
|
|
*/
|
|
|
|
static DWORD AVI_mciOpen(UINT16 wDevID, DWORD dwFlags, LPMCI_DGV_OPEN_PARMSA lpParms)
|
1999-02-13 13:38:09 +01:00
|
|
|
{
|
1999-05-02 12:21:49 +02:00
|
|
|
WINE_MCIAVI* wma = AVI_drvGetDrv(wDevID);
|
1999-03-15 16:40:27 +01:00
|
|
|
|
1999-05-02 16:32:27 +02:00
|
|
|
TRACE_(mciavi)("(%04x, %08lX, %p) : semi-stub\n", wDevID, dwFlags, lpParms);
|
1999-03-15 16:40:27 +01:00
|
|
|
|
1999-02-13 13:38:09 +01:00
|
|
|
if (lpParms == NULL) return MCIERR_NULL_PARAMETER_BLOCK;
|
1999-05-02 12:21:49 +02:00
|
|
|
if (wma == NULL) return MCIERR_INVALID_DEVICE_ID;
|
1999-03-15 16:40:27 +01:00
|
|
|
|
1999-02-13 13:38:09 +01:00
|
|
|
if (wma->nUseCount > 0) {
|
|
|
|
/* The driver is already open on this channel */
|
|
|
|
/* If the driver was opened shareable before and this open specifies */
|
|
|
|
/* shareable then increment the use count */
|
|
|
|
if (wma->fShareable && (dwFlags & MCI_OPEN_SHAREABLE))
|
|
|
|
++wma->nUseCount;
|
|
|
|
else
|
|
|
|
return MCIERR_MUST_USE_SHAREABLE;
|
|
|
|
} else {
|
|
|
|
wma->nUseCount = 1;
|
|
|
|
wma->fShareable = dwFlags & MCI_OPEN_SHAREABLE;
|
|
|
|
}
|
|
|
|
if (dwFlags & MCI_OPEN_ELEMENT) {
|
1999-05-02 16:32:27 +02:00
|
|
|
TRACE_(mciavi)("MCI_OPEN_ELEMENT !\n");
|
1999-02-13 13:38:09 +01:00
|
|
|
/* return MCIERR_NO_ELEMENT_ALLOWED; */
|
|
|
|
}
|
1999-03-15 16:40:27 +01:00
|
|
|
|
1999-02-13 13:38:09 +01:00
|
|
|
wma->openParms.dwCallback = lpParms->dwCallback;
|
|
|
|
wma->openParms.wDeviceID = (WORD)lpParms->wDeviceID;
|
|
|
|
wma->openParms.lpstrDeviceType = lpParms->lpstrDeviceType;
|
|
|
|
wma->openParms.lpstrElementName = lpParms->lpstrElementName;
|
|
|
|
wma->openParms.lpstrAlias = lpParms->lpstrAlias;
|
1999-03-15 16:40:27 +01:00
|
|
|
|
1999-02-13 13:38:09 +01:00
|
|
|
wma->wNotifyDeviceID = lpParms->wDeviceID;
|
|
|
|
/* FIXME: do real open */
|
1999-03-15 16:40:27 +01:00
|
|
|
wma->wStatus = MCI_MODE_STOP;
|
1999-02-13 13:38:09 +01:00
|
|
|
wma->dwTimeFormat = MCI_FORMAT_TMSF;
|
1999-03-15 16:40:27 +01:00
|
|
|
|
1999-02-13 13:38:09 +01:00
|
|
|
return 0;
|
1999-03-15 16:40:27 +01:00
|
|
|
|
1999-02-13 13:38:09 +01:00
|
|
|
}
|
|
|
|
|
1999-03-15 16:40:27 +01:00
|
|
|
/***************************************************************************
|
|
|
|
* AVI_mciClose [internal]
|
|
|
|
*/
|
1999-02-13 13:38:09 +01:00
|
|
|
static DWORD AVI_mciClose(UINT16 wDevID, DWORD dwFlags, LPMCI_GENERIC_PARMS lpParms)
|
|
|
|
{
|
|
|
|
WINE_MCIAVI* wma = AVI_mciGetOpenDev(wDevID);
|
1999-03-15 16:40:27 +01:00
|
|
|
|
1999-05-02 16:32:27 +02:00
|
|
|
TRACE_(mciavi)("(%04x, %08lX, %p) : semi-stub\n", wDevID, dwFlags, lpParms);
|
1999-03-15 16:40:27 +01:00
|
|
|
|
1999-02-13 13:38:09 +01:00
|
|
|
if (wma == NULL) return MCIERR_INVALID_DEVICE_ID;
|
|
|
|
|
|
|
|
if (wma->nUseCount == 1) {
|
|
|
|
AVI_mciStop(wDevID, 0, NULL);
|
|
|
|
/* FIXME: do real closing */
|
|
|
|
}
|
|
|
|
wma->nUseCount--;
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
1999-03-15 16:40:27 +01:00
|
|
|
/***************************************************************************
|
|
|
|
* AVI_mciPlay [internal]
|
|
|
|
*/
|
1999-02-13 13:38:09 +01:00
|
|
|
static DWORD AVI_mciPlay(UINT16 wDevID, DWORD dwFlags, LPMCI_PLAY_PARMS lpParms)
|
|
|
|
{
|
1999-03-15 16:40:27 +01:00
|
|
|
WINE_MCIAVI* wma = AVI_mciGetOpenDev(wDevID);
|
|
|
|
|
1999-05-02 16:32:27 +02:00
|
|
|
TRACE_(mciavi)("(%04x, %08lX, %p) : stub\n", wDevID, dwFlags, lpParms);
|
1999-03-15 16:40:27 +01:00
|
|
|
|
|
|
|
if (lpParms == NULL) return MCIERR_NULL_PARAMETER_BLOCK;
|
|
|
|
if (wma == NULL) return MCIERR_INVALID_DEVICE_ID;
|
|
|
|
|
|
|
|
wma->wStatus = MCI_MODE_PLAY;
|
|
|
|
if (lpParms && (dwFlags & MCI_NOTIFY)) {
|
1999-05-02 16:32:27 +02:00
|
|
|
TRACE_(mciavi)("MCI_NOTIFY_SUCCESSFUL %08lX !\n", lpParms->dwCallback);
|
1999-03-15 16:40:27 +01:00
|
|
|
mciDriverNotify16((HWND16)LOWORD(lpParms->dwCallback),
|
|
|
|
wma->wNotifyDeviceID, MCI_NOTIFY_SUCCESSFUL);
|
|
|
|
}
|
1999-02-13 13:38:09 +01:00
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
1999-03-15 16:40:27 +01:00
|
|
|
/***************************************************************************
|
|
|
|
* AVI_mciRecord [internal]
|
|
|
|
*/
|
|
|
|
static DWORD AVI_mciRecord(UINT16 wDevID, DWORD dwFlags, LPMCI_DGV_RECORD_PARMS lpParms)
|
1999-02-13 13:38:09 +01:00
|
|
|
{
|
1999-03-15 16:40:27 +01:00
|
|
|
WINE_MCIAVI* wma = AVI_mciGetOpenDev(wDevID);
|
|
|
|
|
1999-05-02 16:32:27 +02:00
|
|
|
TRACE_(mciavi)("(%04x, %08lX, %p) : stub\n", wDevID, dwFlags, lpParms);
|
1999-03-15 16:40:27 +01:00
|
|
|
|
|
|
|
if (lpParms == NULL) return MCIERR_NULL_PARAMETER_BLOCK;
|
|
|
|
if (wma == NULL) return MCIERR_INVALID_DEVICE_ID;
|
|
|
|
|
|
|
|
wma->wStatus = MCI_MODE_RECORD;
|
1999-02-13 13:38:09 +01:00
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
1999-03-15 16:40:27 +01:00
|
|
|
/***************************************************************************
|
|
|
|
* AVI_mciStop [internal]
|
|
|
|
*/
|
1999-02-13 13:38:09 +01:00
|
|
|
static DWORD AVI_mciStop(UINT16 wDevID, DWORD dwFlags, LPMCI_GENERIC_PARMS lpParms)
|
|
|
|
{
|
1999-03-15 16:40:27 +01:00
|
|
|
WINE_MCIAVI* wma = AVI_mciGetOpenDev(wDevID);
|
|
|
|
|
1999-05-02 16:32:27 +02:00
|
|
|
TRACE_(mciavi)("(%04x, %08lX, %p) : stub\n", wDevID, dwFlags, lpParms);
|
1999-03-15 16:40:27 +01:00
|
|
|
|
|
|
|
if (lpParms == NULL) return MCIERR_NULL_PARAMETER_BLOCK;
|
|
|
|
if (wma == NULL) return MCIERR_INVALID_DEVICE_ID;
|
|
|
|
|
|
|
|
wma->wStatus = MCI_MODE_STOP;
|
1999-02-13 13:38:09 +01:00
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
1999-03-15 16:40:27 +01:00
|
|
|
/***************************************************************************
|
|
|
|
* AVI_mciPause [internal]
|
|
|
|
*/
|
|
|
|
static DWORD AVI_mciPause(UINT16 wDevID, DWORD dwFlags, LPMCI_GENERIC_PARMS lpParms)
|
1999-02-13 13:38:09 +01:00
|
|
|
{
|
1999-03-15 16:40:27 +01:00
|
|
|
WINE_MCIAVI* wma = AVI_mciGetOpenDev(wDevID);
|
|
|
|
|
1999-05-02 16:32:27 +02:00
|
|
|
TRACE_(mciavi)("(%04x, %08lX, %p) : stub\n", wDevID, dwFlags, lpParms);
|
1999-03-15 16:40:27 +01:00
|
|
|
|
|
|
|
if (lpParms == NULL) return MCIERR_NULL_PARAMETER_BLOCK;
|
|
|
|
if (wma == NULL) return MCIERR_INVALID_DEVICE_ID;
|
|
|
|
|
|
|
|
wma->wStatus = MCI_MODE_PAUSE;
|
1999-02-13 13:38:09 +01:00
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
1999-03-15 16:40:27 +01:00
|
|
|
/***************************************************************************
|
|
|
|
* AVI_mciResume [internal]
|
|
|
|
*/
|
|
|
|
static DWORD AVI_mciResume(UINT16 wDevID, DWORD dwFlags, LPMCI_GENERIC_PARMS lpParms)
|
1999-02-13 13:38:09 +01:00
|
|
|
{
|
1999-03-15 16:40:27 +01:00
|
|
|
WINE_MCIAVI* wma = AVI_mciGetOpenDev(wDevID);
|
|
|
|
|
1999-05-02 16:32:27 +02:00
|
|
|
TRACE_(mciavi)("(%04x, %08lX, %p) : stub\n", wDevID, dwFlags, lpParms);
|
1999-03-15 16:40:27 +01:00
|
|
|
|
|
|
|
if (lpParms == NULL) return MCIERR_NULL_PARAMETER_BLOCK;
|
|
|
|
if (wma == NULL) return MCIERR_INVALID_DEVICE_ID;
|
|
|
|
|
|
|
|
wma->wStatus = MCI_MODE_PLAY;
|
1999-02-13 13:38:09 +01:00
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
1999-03-15 16:40:27 +01:00
|
|
|
/***************************************************************************
|
|
|
|
* AVI_mciSeek [internal]
|
|
|
|
*/
|
|
|
|
static DWORD AVI_mciSeek(UINT16 wDevID, DWORD dwFlags, LPMCI_SEEK_PARMS lpParms)
|
1999-02-13 13:38:09 +01:00
|
|
|
{
|
1999-03-15 16:40:27 +01:00
|
|
|
WINE_MCIAVI* wma = AVI_mciGetOpenDev(wDevID);
|
|
|
|
|
1999-05-02 16:32:27 +02:00
|
|
|
TRACE_(mciavi)("(%04x, %08lX, %p) : stub\n", wDevID, dwFlags, lpParms);
|
1999-03-15 16:40:27 +01:00
|
|
|
|
|
|
|
if (lpParms == NULL) return MCIERR_NULL_PARAMETER_BLOCK;
|
|
|
|
if (wma == NULL) return MCIERR_INVALID_DEVICE_ID;
|
|
|
|
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
/***************************************************************************
|
|
|
|
* AVI_mciSet [internal]
|
|
|
|
*/
|
|
|
|
static DWORD AVI_mciSet(UINT16 wDevID, DWORD dwFlags, LPMCI_DGV_SET_PARMS lpParms)
|
|
|
|
{
|
|
|
|
WINE_MCIAVI* wma = AVI_mciGetOpenDev(wDevID);
|
|
|
|
|
1999-05-02 16:32:27 +02:00
|
|
|
TRACE_(mciavi)("(%04x, %08lX, %p) : stub\n", wDevID, dwFlags, lpParms);
|
1999-03-15 16:40:27 +01:00
|
|
|
|
|
|
|
if (lpParms == NULL) return MCIERR_NULL_PARAMETER_BLOCK;
|
|
|
|
if (wma == NULL) return MCIERR_INVALID_DEVICE_ID;
|
|
|
|
|
|
|
|
if (dwFlags & MCI_SET_TIME_FORMAT) {
|
|
|
|
switch (lpParms->dwTimeFormat) {
|
|
|
|
case MCI_FORMAT_MILLISECONDS:
|
1999-05-02 16:32:27 +02:00
|
|
|
TRACE_(mciavi)("MCI_FORMAT_MILLISECONDS !\n");
|
1999-03-15 16:40:27 +01:00
|
|
|
wma->dwTimeFormat = MCI_FORMAT_MILLISECONDS;
|
|
|
|
break;
|
|
|
|
case MCI_FORMAT_FRAMES:
|
1999-05-02 16:32:27 +02:00
|
|
|
TRACE_(mciavi)("MCI_FORMAT_FRAMES !\n");
|
1999-03-15 16:40:27 +01:00
|
|
|
wma->dwTimeFormat = MCI_FORMAT_FRAMES;
|
|
|
|
break;
|
|
|
|
default:
|
1999-05-02 16:32:27 +02:00
|
|
|
WARN_(mciavi)("Bad time format %lu!\n", lpParms->dwTimeFormat);
|
1999-03-15 16:40:27 +01:00
|
|
|
return MCIERR_BAD_TIME_FORMAT;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
if (dwFlags & MCI_SET_DOOR_OPEN) {
|
1999-05-02 16:32:27 +02:00
|
|
|
TRACE_(mciavi)("No support for door open !\n");
|
1999-03-15 16:40:27 +01:00
|
|
|
return MCIERR_UNSUPPORTED_FUNCTION;
|
|
|
|
}
|
|
|
|
if (dwFlags & MCI_SET_DOOR_CLOSED) {
|
1999-05-02 16:32:27 +02:00
|
|
|
TRACE_(mciavi)("No support for door close !\n");
|
1999-03-15 16:40:27 +01:00
|
|
|
return MCIERR_UNSUPPORTED_FUNCTION;
|
|
|
|
}
|
|
|
|
if (dwFlags & MCI_SET_ON) {
|
|
|
|
dbg_decl_str(mciavi, 256);
|
|
|
|
|
|
|
|
dsprintf(mciavi, "MCI_SET_ON:");
|
|
|
|
|
|
|
|
if (dwFlags & MCI_SET_VIDEO) {
|
|
|
|
dsprintf(mciavi, " video");
|
|
|
|
}
|
|
|
|
if (dwFlags & MCI_SET_AUDIO) {
|
|
|
|
dsprintf(mciavi, " audio");
|
|
|
|
if (lpParms->dwAudio & MCI_SET_AUDIO_ALL)
|
|
|
|
dsprintf(mciavi, " all");
|
|
|
|
if (lpParms->dwAudio & MCI_SET_AUDIO_LEFT)
|
|
|
|
dsprintf(mciavi, " left");
|
|
|
|
if (lpParms->dwAudio & MCI_SET_AUDIO_RIGHT)
|
|
|
|
dsprintf(mciavi, " right");
|
|
|
|
}
|
|
|
|
if (dwFlags & MCI_DGV_SET_SEEK_EXACTLY) {
|
|
|
|
dsprintf(mciavi, " seek_exactly");
|
|
|
|
}
|
1999-05-02 16:32:27 +02:00
|
|
|
TRACE_(mciavi)("%s\n", dbg_str(mciavi));
|
1999-03-15 16:40:27 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
if (dwFlags & MCI_SET_OFF) {
|
|
|
|
dbg_decl_str(mciavi, 256);
|
|
|
|
|
|
|
|
dsprintf(mciavi, "MCI_SET_OFF:");
|
|
|
|
if (dwFlags & MCI_SET_VIDEO) {
|
|
|
|
dsprintf(mciavi, " video");
|
|
|
|
}
|
|
|
|
if (dwFlags & MCI_SET_AUDIO) {
|
|
|
|
dsprintf(mciavi, " audio");
|
|
|
|
if (lpParms->dwAudio & MCI_SET_AUDIO_ALL)
|
|
|
|
dsprintf(mciavi, " all");
|
|
|
|
if (lpParms->dwAudio & MCI_SET_AUDIO_LEFT)
|
|
|
|
dsprintf(mciavi, " left");
|
|
|
|
if (lpParms->dwAudio & MCI_SET_AUDIO_RIGHT)
|
|
|
|
dsprintf(mciavi, " right");
|
|
|
|
}
|
|
|
|
if (dwFlags & MCI_DGV_SET_SEEK_EXACTLY) {
|
|
|
|
dsprintf(mciavi, " seek_exactly");
|
|
|
|
}
|
1999-05-02 16:32:27 +02:00
|
|
|
TRACE_(mciavi)("%s\n", dbg_str(mciavi));
|
1999-03-15 16:40:27 +01:00
|
|
|
}
|
|
|
|
if (dwFlags & MCI_DGV_SET_FILEFORMAT) {
|
|
|
|
LPSTR str = "save";
|
|
|
|
if (dwFlags & MCI_DGV_SET_STILL)
|
|
|
|
str = "capture";
|
|
|
|
|
|
|
|
switch (lpParms->dwFileFormat) {
|
1999-05-02 16:32:27 +02:00
|
|
|
case MCI_DGV_FF_AVI: TRACE_(mciavi)("Setting file format (%s) to 'AVI'\n", str); break;
|
|
|
|
case MCI_DGV_FF_AVSS: TRACE_(mciavi)("Setting file format (%s) to 'AVSS'\n", str); break;
|
|
|
|
case MCI_DGV_FF_DIB: TRACE_(mciavi)("Setting file format (%s) to 'DIB'\n", str); break;
|
|
|
|
case MCI_DGV_FF_JFIF: TRACE_(mciavi)("Setting file format (%s) to 'JFIF'\n", str); break;
|
|
|
|
case MCI_DGV_FF_JPEG: TRACE_(mciavi)("Setting file format (%s) to 'JPEG'\n", str); break;
|
|
|
|
case MCI_DGV_FF_MPEG: TRACE_(mciavi)("Setting file format (%s) to 'MPEG'\n", str); break;
|
|
|
|
case MCI_DGV_FF_RDIB: TRACE_(mciavi)("Setting file format (%s) to 'RLE DIB'\n", str); break;
|
|
|
|
case MCI_DGV_FF_RJPEG: TRACE_(mciavi)("Setting file format (%s) to 'RJPEG'\n", str); break;
|
|
|
|
default: TRACE_(mciavi)("Setting unknown file format (%s): %ld\n", str, lpParms->dwFileFormat);
|
1999-03-15 16:40:27 +01:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
if (dwFlags & MCI_DGV_SET_SPEED) {
|
1999-05-02 16:32:27 +02:00
|
|
|
TRACE_(mciavi)("Setting speed to %ld\n", lpParms->dwSpeed);
|
1999-03-15 16:40:27 +01:00
|
|
|
}
|
|
|
|
|
1999-02-13 13:38:09 +01:00
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
1999-03-15 16:40:27 +01:00
|
|
|
/***************************************************************************
|
|
|
|
* AVI_mciStatus [internal]
|
|
|
|
*/
|
|
|
|
static DWORD AVI_mciStatus(UINT16 wDevID, DWORD dwFlags, LPMCI_DGV_STATUS_PARMSA lpParms)
|
1999-02-13 13:38:09 +01:00
|
|
|
{
|
1999-03-15 16:40:27 +01:00
|
|
|
WINE_MCIAVI* wma = AVI_mciGetOpenDev(wDevID);
|
|
|
|
|
1999-05-02 16:32:27 +02:00
|
|
|
TRACE_(mciavi)("(%04x, %08lX, %p) : stub\n", wDevID, dwFlags, lpParms);
|
1999-03-15 16:40:27 +01:00
|
|
|
|
|
|
|
if (lpParms == NULL) return MCIERR_NULL_PARAMETER_BLOCK;
|
|
|
|
if (wma == NULL) return MCIERR_INVALID_DEVICE_ID;
|
|
|
|
|
|
|
|
if (dwFlags & MCI_STATUS_ITEM) {
|
|
|
|
switch (lpParms->dwItem) {
|
|
|
|
case MCI_STATUS_CURRENT_TRACK:
|
|
|
|
lpParms->dwReturn = 1;
|
1999-05-02 16:32:27 +02:00
|
|
|
TRACE_(mciavi)("MCI_STATUS_CURRENT_TRACK => %lu\n", lpParms->dwReturn);
|
1999-03-15 16:40:27 +01:00
|
|
|
break;
|
|
|
|
case MCI_STATUS_LENGTH:
|
|
|
|
if (dwFlags & MCI_TRACK) {
|
|
|
|
/* lpParms->dwTrack contains track # */
|
|
|
|
lpParms->dwReturn = 0x1234;
|
|
|
|
} else {
|
|
|
|
lpParms->dwReturn = 0x4321;
|
|
|
|
}
|
1999-05-02 16:32:27 +02:00
|
|
|
TRACE_(mciavi)("MCI_STATUS_LENGTH => %lu\n", lpParms->dwReturn);
|
1999-03-15 16:40:27 +01:00
|
|
|
break;
|
|
|
|
case MCI_STATUS_MODE:
|
|
|
|
lpParms->dwReturn = wma->wStatus;
|
1999-05-02 16:32:27 +02:00
|
|
|
TRACE_(mciavi)("MCI_STATUS_MODE => %lu\n", lpParms->dwReturn);
|
1999-03-15 16:40:27 +01:00
|
|
|
break;
|
|
|
|
case MCI_STATUS_MEDIA_PRESENT:
|
1999-05-02 16:32:27 +02:00
|
|
|
TRACE_(mciavi)("MCI_STATUS_MEDIA_PRESENT => TRUE\n");
|
1999-03-15 16:40:27 +01:00
|
|
|
lpParms->dwReturn = TRUE;
|
|
|
|
break;
|
|
|
|
case MCI_STATUS_NUMBER_OF_TRACKS:
|
|
|
|
lpParms->dwReturn = 3;
|
1999-05-02 16:32:27 +02:00
|
|
|
TRACE_(mciavi)("MCI_STATUS_NUMBER_OF_TRACKS => %lu\n", lpParms->dwReturn);
|
1999-03-15 16:40:27 +01:00
|
|
|
break;
|
|
|
|
case MCI_STATUS_POSITION:
|
|
|
|
/* FIXME: do I need to use MCI_TRACK ? */
|
|
|
|
lpParms->dwReturn = 0x0123;
|
1999-05-02 16:32:27 +02:00
|
|
|
TRACE_(mciavi)("MCI_STATUS_POSITION %s => %lu\n",
|
1999-03-15 16:40:27 +01:00
|
|
|
(dwFlags & MCI_STATUS_START) ? "start" : "current", lpParms->dwReturn);
|
|
|
|
break;
|
|
|
|
case MCI_STATUS_READY:
|
|
|
|
lpParms->dwReturn = (wma->wStatus != MCI_MODE_NOT_READY);
|
1999-05-02 16:32:27 +02:00
|
|
|
TRACE_(mciavi)("MCI_STATUS_READY = %lu\n", lpParms->dwReturn);
|
1999-03-15 16:40:27 +01:00
|
|
|
break;
|
|
|
|
case MCI_STATUS_TIME_FORMAT:
|
|
|
|
lpParms->dwReturn = wma->dwTimeFormat;
|
1999-05-02 16:32:27 +02:00
|
|
|
TRACE_(mciavi)("MCI_STATUS_TIME_FORMAT => %lu\n", lpParms->dwReturn);
|
1999-03-15 16:40:27 +01:00
|
|
|
break;
|
|
|
|
default:
|
1999-05-02 16:32:27 +02:00
|
|
|
WARN_(mciavi)("Unknowm command %08lX !\n", lpParms->dwItem);
|
1999-03-15 16:40:27 +01:00
|
|
|
return MCIERR_UNRECOGNIZED_COMMAND;
|
|
|
|
}
|
|
|
|
} else {
|
1999-05-02 16:32:27 +02:00
|
|
|
WARN_(mciavi)("No Status-Item!\n");
|
1999-03-15 16:40:27 +01:00
|
|
|
return MCIERR_UNRECOGNIZED_COMMAND;
|
|
|
|
}
|
|
|
|
if (dwFlags & MCI_NOTIFY) {
|
1999-05-02 16:32:27 +02:00
|
|
|
TRACE_(mciavi)("MCI_NOTIFY_SUCCESSFUL %08lX !\n", lpParms->dwCallback);
|
1999-03-15 16:40:27 +01:00
|
|
|
mciDriverNotify16((HWND16)LOWORD(lpParms->dwCallback),
|
|
|
|
wma->wNotifyDeviceID, MCI_NOTIFY_SUCCESSFUL);
|
|
|
|
}
|
|
|
|
|
1999-02-13 13:38:09 +01:00
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
1999-03-15 16:40:27 +01:00
|
|
|
/***************************************************************************
|
|
|
|
* AVI_mciGetDevCaps [internal]
|
|
|
|
*/
|
1999-02-13 13:38:09 +01:00
|
|
|
static DWORD AVI_mciGetDevCaps(UINT16 wDevID, DWORD dwFlags, LPMCI_GETDEVCAPS_PARMS lpParms)
|
|
|
|
{
|
1999-03-15 16:40:27 +01:00
|
|
|
WINE_MCIAVI* wma = AVI_mciGetOpenDev(wDevID);
|
1999-02-13 13:38:09 +01:00
|
|
|
|
1999-05-02 16:32:27 +02:00
|
|
|
TRACE_(mciavi)("(%04x, %08lX, %p) : stub\n", wDevID, dwFlags, lpParms);
|
1999-02-13 13:38:09 +01:00
|
|
|
|
|
|
|
if (lpParms == NULL) return MCIERR_NULL_PARAMETER_BLOCK;
|
1999-03-15 16:40:27 +01:00
|
|
|
if (wma == NULL) return MCIERR_INVALID_DEVICE_ID;
|
1999-02-13 13:38:09 +01:00
|
|
|
|
|
|
|
if (dwFlags & MCI_GETDEVCAPS_ITEM) {
|
|
|
|
switch (lpParms->dwItem) {
|
|
|
|
case MCI_GETDEVCAPS_DEVICE_TYPE:
|
1999-05-02 16:32:27 +02:00
|
|
|
TRACE_(mciavi)("MCI_GETDEVCAPS_DEVICE_TYPE !\n");
|
1999-02-13 13:38:09 +01:00
|
|
|
lpParms->dwReturn = MCI_DEVTYPE_DIGITAL_VIDEO;
|
|
|
|
break;
|
|
|
|
case MCI_GETDEVCAPS_HAS_AUDIO:
|
1999-05-02 16:32:27 +02:00
|
|
|
TRACE_(mciavi)("MCI_GETDEVCAPS_HAS_AUDIO !\n");
|
1999-02-13 13:38:09 +01:00
|
|
|
lpParms->dwReturn = TRUE;
|
|
|
|
break;
|
|
|
|
case MCI_GETDEVCAPS_HAS_VIDEO:
|
1999-05-02 16:32:27 +02:00
|
|
|
TRACE_(mciavi)("MCI_GETDEVCAPS_HAS_VIDEO !\n");
|
1999-02-13 13:38:09 +01:00
|
|
|
lpParms->dwReturn = TRUE;
|
|
|
|
break;
|
|
|
|
case MCI_GETDEVCAPS_USES_FILES:
|
1999-05-02 16:32:27 +02:00
|
|
|
TRACE_(mciavi)("MCI_GETDEVCAPS_USES_FILES !\n");
|
1999-02-13 13:38:09 +01:00
|
|
|
lpParms->dwReturn = TRUE;
|
|
|
|
break;
|
|
|
|
case MCI_GETDEVCAPS_COMPOUND_DEVICE:
|
1999-05-02 16:32:27 +02:00
|
|
|
TRACE_(mciavi)("MCI_GETDEVCAPS_COMPOUND_DEVICE !\n");
|
1999-02-13 13:38:09 +01:00
|
|
|
lpParms->dwReturn = TRUE;
|
|
|
|
break;
|
|
|
|
case MCI_GETDEVCAPS_CAN_EJECT:
|
1999-05-02 16:32:27 +02:00
|
|
|
TRACE_(mciavi)("MCI_GETDEVCAPS_CAN_EJECT !\n");
|
1999-02-13 13:38:09 +01:00
|
|
|
lpParms->dwReturn = FALSE;
|
|
|
|
break;
|
|
|
|
case MCI_GETDEVCAPS_CAN_PLAY:
|
1999-05-02 16:32:27 +02:00
|
|
|
TRACE_(mciavi)("MCI_GETDEVCAPS_CAN_PLAY !\n");
|
1999-02-13 13:38:09 +01:00
|
|
|
lpParms->dwReturn = TRUE;
|
|
|
|
break;
|
|
|
|
case MCI_GETDEVCAPS_CAN_RECORD:
|
1999-05-02 16:32:27 +02:00
|
|
|
TRACE_(mciavi)("MCI_GETDEVCAPS_CAN_RECORD !\n");
|
1999-02-13 13:38:09 +01:00
|
|
|
lpParms->dwReturn = FALSE;
|
|
|
|
break;
|
|
|
|
case MCI_GETDEVCAPS_CAN_SAVE:
|
1999-05-02 16:32:27 +02:00
|
|
|
TRACE_(mciavi)("MCI_GETDEVCAPS_CAN_SAVE !\n");
|
1999-02-13 13:38:09 +01:00
|
|
|
lpParms->dwReturn = FALSE;
|
|
|
|
break;
|
|
|
|
default:
|
1999-05-02 16:32:27 +02:00
|
|
|
TRACE_(mciavi)("Unknown capability (%08lx) !\n", lpParms->dwItem);
|
1999-02-13 13:38:09 +01:00
|
|
|
return MCIERR_UNRECOGNIZED_COMMAND;
|
|
|
|
}
|
|
|
|
} else {
|
1999-05-02 16:32:27 +02:00
|
|
|
TRACE_(mciavi)("No GetDevCaps-Item !\n");
|
1999-02-13 13:38:09 +01:00
|
|
|
return MCIERR_UNRECOGNIZED_COMMAND;
|
|
|
|
}
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
1999-03-15 16:40:27 +01:00
|
|
|
/***************************************************************************
|
|
|
|
* AVI_mciInfo [internal]
|
|
|
|
*/
|
|
|
|
static DWORD AVI_mciInfo(UINT16 wDevID, DWORD dwFlags, LPMCI_DGV_INFO_PARMSA lpParms)
|
1999-02-13 13:38:09 +01:00
|
|
|
{
|
|
|
|
DWORD ret = 0;
|
|
|
|
LPSTR str = 0;
|
|
|
|
WINE_MCIAVI* wma = AVI_mciGetOpenDev(wDevID);
|
1999-03-15 16:40:27 +01:00
|
|
|
|
1999-05-02 16:32:27 +02:00
|
|
|
TRACE_(mciavi)("(%04X, %08lX, %p) : stub;\n", wDevID, dwFlags, lpParms);
|
1999-02-13 13:38:09 +01:00
|
|
|
|
|
|
|
if (lpParms == NULL || lpParms->lpstrReturn == NULL) {
|
|
|
|
ret = MCIERR_NULL_PARAMETER_BLOCK;
|
|
|
|
} else if (wma == NULL) {
|
|
|
|
ret = MCIERR_INVALID_DEVICE_ID;
|
|
|
|
} else {
|
1999-05-02 16:32:27 +02:00
|
|
|
TRACE_(mciavi)("buf=%p, len=%lu\n", lpParms->lpstrReturn, lpParms->dwRetSize);
|
1999-02-13 13:38:09 +01:00
|
|
|
|
|
|
|
switch (dwFlags) {
|
|
|
|
case MCI_INFO_PRODUCT:
|
|
|
|
str = "Wine's AVI player";
|
|
|
|
break;
|
|
|
|
case MCI_INFO_FILE:
|
|
|
|
str = "";
|
|
|
|
break;
|
|
|
|
#if 0
|
|
|
|
/* FIXME: the following manifest constants are not defined in <WINE>/include/mmsystem.h */
|
|
|
|
case MCI_INFO_COPYRIGHT:
|
|
|
|
break;
|
|
|
|
case MCI_INFO_NAME:
|
|
|
|
break;
|
|
|
|
#endif
|
|
|
|
default:
|
1999-05-02 16:32:27 +02:00
|
|
|
WARN_(mciavi)("Don't know this info command (%lu)\n", dwFlags);
|
1999-02-13 13:38:09 +01:00
|
|
|
ret = MCIERR_UNRECOGNIZED_COMMAND;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if (str) {
|
|
|
|
ret = MCI_WriteString(lpParms->lpstrReturn, lpParms->dwRetSize, str);
|
|
|
|
} else {
|
|
|
|
lpParms->lpstrReturn[0] = 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
return ret;
|
|
|
|
}
|
|
|
|
|
1999-03-15 16:40:27 +01:00
|
|
|
/***************************************************************************
|
|
|
|
* AVI_mciPut [internal]
|
|
|
|
*/
|
|
|
|
static DWORD AVI_mciPut(UINT16 wDevID, DWORD dwFlags, LPMCI_DGV_PUT_PARMS lpParms)
|
1999-02-13 13:38:09 +01:00
|
|
|
{
|
1999-03-15 16:40:27 +01:00
|
|
|
WINE_MCIAVI* wma = AVI_mciGetOpenDev(wDevID);
|
|
|
|
RECT rc;
|
|
|
|
dbg_decl_str(mciavi, 256);
|
|
|
|
|
1999-05-02 16:32:27 +02:00
|
|
|
TRACE_(mciavi)("(%04x, %08lX, %p) : stub\n", wDevID, dwFlags, lpParms);
|
1999-03-15 16:40:27 +01:00
|
|
|
|
|
|
|
if (lpParms == NULL) return MCIERR_NULL_PARAMETER_BLOCK;
|
|
|
|
if (wma == NULL) return MCIERR_INVALID_DEVICE_ID;
|
|
|
|
|
|
|
|
if (dwFlags & MCI_DGV_RECT) {
|
|
|
|
rc = lpParms->rc;
|
|
|
|
} else {
|
|
|
|
SetRectEmpty(&rc);
|
|
|
|
}
|
|
|
|
|
|
|
|
if (dwFlags & MCI_DGV_PUT_CLIENT) {
|
|
|
|
dsprintf(mciavi, "PUT_CLIENT");
|
|
|
|
}
|
|
|
|
if (dwFlags & MCI_DGV_PUT_DESTINATION) {
|
|
|
|
dsprintf(mciavi, "PUT_DESTINATION");
|
|
|
|
}
|
|
|
|
if (dwFlags & MCI_DGV_PUT_FRAME) {
|
|
|
|
dsprintf(mciavi, "PUT_FRAME");
|
|
|
|
}
|
|
|
|
if (dwFlags & MCI_DGV_PUT_SOURCE) {
|
|
|
|
dsprintf(mciavi, "PUT_SOURCE");
|
|
|
|
}
|
|
|
|
if (dwFlags & MCI_DGV_PUT_VIDEO) {
|
|
|
|
dsprintf(mciavi, "PUT_VIDEO");
|
|
|
|
}
|
|
|
|
if (dwFlags & MCI_DGV_PUT_WINDOW) {
|
|
|
|
dsprintf(mciavi, "PUT_WINDOW");
|
|
|
|
}
|
|
|
|
dsprintf(mciavi, " (%d,%d,%d,%d)\n", rc.left, rc.top, rc.right, rc.bottom);
|
|
|
|
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
/***************************************************************************
|
|
|
|
* AVI_mciWindow [internal]
|
|
|
|
*/
|
|
|
|
static DWORD AVI_mciWindow(UINT16 wDevID, DWORD dwFlags, LPMCI_DGV_WINDOW_PARMSA lpParms)
|
|
|
|
{
|
|
|
|
WINE_MCIAVI* wma = AVI_mciGetOpenDev(wDevID);
|
|
|
|
|
1999-05-02 16:32:27 +02:00
|
|
|
TRACE_(mciavi)("(%04x, %08lX, %p) : stub\n", wDevID, dwFlags, lpParms);
|
1999-03-15 16:40:27 +01:00
|
|
|
|
|
|
|
if (lpParms == NULL) return MCIERR_NULL_PARAMETER_BLOCK;
|
|
|
|
if (wma == NULL) return MCIERR_INVALID_DEVICE_ID;
|
|
|
|
|
|
|
|
if (dwFlags & MCI_DGV_WINDOW_HWND) {
|
1999-05-02 16:32:27 +02:00
|
|
|
TRACE_(mciavi)("Setting hWnd to %08lx\n", (DWORD)lpParms->hWnd);
|
1999-03-15 16:40:27 +01:00
|
|
|
}
|
|
|
|
if (dwFlags & MCI_DGV_WINDOW_STATE) {
|
1999-05-02 16:32:27 +02:00
|
|
|
TRACE_(mciavi)("Setting nCmdShow to %d\n", lpParms->nCmdShow);
|
1999-03-15 16:40:27 +01:00
|
|
|
}
|
|
|
|
if (dwFlags & MCI_DGV_WINDOW_TEXT) {
|
1999-05-02 16:32:27 +02:00
|
|
|
TRACE_(mciavi)("Setting caption to '%s'\n", lpParms->lpstrText);
|
1999-03-15 16:40:27 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
/*****************************************************************************
|
|
|
|
* AVI_mciLoad [internal]
|
|
|
|
*/
|
|
|
|
static DWORD AVI_mciLoad(UINT16 wDevID, DWORD dwFlags, LPMCI_DGV_LOAD_PARMSA lpParms)
|
|
|
|
{
|
|
|
|
WINE_MCIAVI* wma = AVI_mciGetOpenDev(wDevID);
|
|
|
|
|
1999-05-02 16:32:27 +02:00
|
|
|
TRACE_(mciavi)("(%04x, %08lx, %p) : stub\n", wDevID, dwFlags, lpParms);
|
1999-03-15 16:40:27 +01:00
|
|
|
|
|
|
|
if (lpParms == NULL) return MCIERR_NULL_PARAMETER_BLOCK;
|
|
|
|
if (wma == NULL) return MCIERR_INVALID_DEVICE_ID;
|
|
|
|
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
/******************************************************************************
|
|
|
|
* AVI_mciSave [internal]
|
|
|
|
*/
|
|
|
|
static DWORD AVI_mciSave(UINT16 wDevID, DWORD dwFlags, LPMCI_DGV_SAVE_PARMSA lpParms)
|
|
|
|
{
|
|
|
|
WINE_MCIAVI* wma = AVI_mciGetOpenDev(wDevID);
|
|
|
|
|
1999-05-02 16:32:27 +02:00
|
|
|
TRACE_(mciavi)("(%04x, %08lx, %p) : stub\n", wDevID, dwFlags, lpParms);
|
1999-03-15 16:40:27 +01:00
|
|
|
|
|
|
|
if (lpParms == NULL) return MCIERR_NULL_PARAMETER_BLOCK;
|
|
|
|
if (wma == NULL) return MCIERR_INVALID_DEVICE_ID;
|
|
|
|
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
/******************************************************************************
|
|
|
|
* AVI_mciFreeze [internal]
|
|
|
|
*/
|
|
|
|
static DWORD AVI_mciFreeze(UINT16 wDevID, DWORD dwFlags, LPMCI_DGV_RECT_PARMS lpParms)
|
|
|
|
{
|
|
|
|
WINE_MCIAVI* wma = AVI_mciGetOpenDev(wDevID);
|
|
|
|
|
1999-05-02 16:32:27 +02:00
|
|
|
TRACE_(mciavi)("(%04x, %08lx, %p) : stub\n", wDevID, dwFlags, lpParms);
|
1999-03-15 16:40:27 +01:00
|
|
|
|
|
|
|
if (lpParms == NULL) return MCIERR_NULL_PARAMETER_BLOCK;
|
|
|
|
if (wma == NULL) return MCIERR_INVALID_DEVICE_ID;
|
|
|
|
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
/******************************************************************************
|
|
|
|
* AVI_mciRealize [internal]
|
|
|
|
*/
|
|
|
|
static DWORD AVI_mciRealize(UINT16 wDevID, DWORD dwFlags, LPMCI_GENERIC_PARMS lpParms)
|
|
|
|
{
|
|
|
|
WINE_MCIAVI* wma = AVI_mciGetOpenDev(wDevID);
|
|
|
|
|
1999-05-02 16:32:27 +02:00
|
|
|
TRACE_(mciavi)("(%04x, %08lx, %p) : stub\n", wDevID, dwFlags, lpParms);
|
1999-03-15 16:40:27 +01:00
|
|
|
|
|
|
|
if (lpParms == NULL) return MCIERR_NULL_PARAMETER_BLOCK;
|
|
|
|
if (wma == NULL) return MCIERR_INVALID_DEVICE_ID;
|
|
|
|
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
/******************************************************************************
|
|
|
|
* AVI_mciUnFreeze [internal]
|
|
|
|
*/
|
|
|
|
static DWORD AVI_mciUnFreeze(UINT16 wDevID, DWORD dwFlags, LPMCI_DGV_RECT_PARMS lpParms)
|
|
|
|
{
|
|
|
|
WINE_MCIAVI* wma = AVI_mciGetOpenDev(wDevID);
|
|
|
|
|
1999-05-02 16:32:27 +02:00
|
|
|
TRACE_(mciavi)("(%04x, %08lx, %p) : stub\n", wDevID, dwFlags, lpParms);
|
1999-03-15 16:40:27 +01:00
|
|
|
|
|
|
|
if (lpParms == NULL) return MCIERR_NULL_PARAMETER_BLOCK;
|
|
|
|
if (wma == NULL) return MCIERR_INVALID_DEVICE_ID;
|
|
|
|
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
/******************************************************************************
|
|
|
|
* AVI_mciUpdate [internal]
|
|
|
|
*/
|
|
|
|
static DWORD AVI_mciUpdate(UINT16 wDevID, DWORD dwFlags, LPMCI_DGV_UPDATE_PARMS lpParms)
|
|
|
|
{
|
|
|
|
WINE_MCIAVI* wma = AVI_mciGetOpenDev(wDevID);
|
|
|
|
|
1999-05-02 16:32:27 +02:00
|
|
|
TRACE_(mciavi)("(%04x, %08lx, %p) : stub\n", wDevID, dwFlags, lpParms);
|
1999-03-15 16:40:27 +01:00
|
|
|
|
|
|
|
if (lpParms == NULL) return MCIERR_NULL_PARAMETER_BLOCK;
|
|
|
|
if (wma == NULL) return MCIERR_INVALID_DEVICE_ID;
|
|
|
|
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
/******************************************************************************
|
|
|
|
* AVI_mciWhere [internal]
|
|
|
|
*/
|
|
|
|
static DWORD AVI_mciWhere(UINT16 wDevID, DWORD dwFlags, LPMCI_DGV_RECT_PARMS lpParms)
|
|
|
|
{
|
|
|
|
WINE_MCIAVI* wma = AVI_mciGetOpenDev(wDevID);
|
|
|
|
|
1999-05-02 16:32:27 +02:00
|
|
|
TRACE_(mciavi)("(%04x, %08lx, %p) : stub\n", wDevID, dwFlags, lpParms);
|
1999-03-15 16:40:27 +01:00
|
|
|
|
|
|
|
if (lpParms == NULL) return MCIERR_NULL_PARAMETER_BLOCK;
|
|
|
|
if (wma == NULL) return MCIERR_INVALID_DEVICE_ID;
|
|
|
|
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
/******************************************************************************
|
|
|
|
* AVI_mciStep [internal]
|
|
|
|
*/
|
|
|
|
static DWORD AVI_mciStep(UINT16 wDevID, DWORD dwFlags, LPMCI_DGV_STEP_PARMS lpParms)
|
|
|
|
{
|
|
|
|
WINE_MCIAVI* wma = AVI_mciGetOpenDev(wDevID);
|
|
|
|
|
1999-05-02 16:32:27 +02:00
|
|
|
TRACE_(mciavi)("(%04x, %08lx, %p) : stub\n", wDevID, dwFlags, lpParms);
|
1999-03-15 16:40:27 +01:00
|
|
|
|
|
|
|
if (lpParms == NULL) return MCIERR_NULL_PARAMETER_BLOCK;
|
|
|
|
if (wma == NULL) return MCIERR_INVALID_DEVICE_ID;
|
|
|
|
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
/******************************************************************************
|
|
|
|
* AVI_mciCopy [internal]
|
|
|
|
*/
|
|
|
|
static DWORD AVI_mciCopy(UINT16 wDevID, DWORD dwFlags, LPMCI_DGV_COPY_PARMS lpParms)
|
|
|
|
{
|
|
|
|
WINE_MCIAVI* wma = AVI_mciGetOpenDev(wDevID);
|
|
|
|
|
1999-05-02 16:32:27 +02:00
|
|
|
TRACE_(mciavi)("(%04x, %08lx, %p) : stub\n", wDevID, dwFlags, lpParms);
|
1999-03-15 16:40:27 +01:00
|
|
|
|
|
|
|
if (lpParms == NULL) return MCIERR_NULL_PARAMETER_BLOCK;
|
|
|
|
if (wma == NULL) return MCIERR_INVALID_DEVICE_ID;
|
|
|
|
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
/******************************************************************************
|
|
|
|
* AVI_mciCut [internal]
|
|
|
|
*/
|
|
|
|
static DWORD AVI_mciCut(UINT16 wDevID, DWORD dwFlags, LPMCI_DGV_CUT_PARMS lpParms)
|
|
|
|
{
|
|
|
|
WINE_MCIAVI* wma = AVI_mciGetOpenDev(wDevID);
|
|
|
|
|
1999-05-02 16:32:27 +02:00
|
|
|
TRACE_(mciavi)("(%04x, %08lx, %p) : stub\n", wDevID, dwFlags, lpParms);
|
1999-03-15 16:40:27 +01:00
|
|
|
|
|
|
|
if (lpParms == NULL) return MCIERR_NULL_PARAMETER_BLOCK;
|
|
|
|
if (wma == NULL) return MCIERR_INVALID_DEVICE_ID;
|
|
|
|
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
/******************************************************************************
|
|
|
|
* AVI_mciDelete [internal]
|
|
|
|
*/
|
|
|
|
static DWORD AVI_mciDelete(UINT16 wDevID, DWORD dwFlags, LPMCI_DGV_DELETE_PARMS lpParms)
|
|
|
|
{
|
|
|
|
WINE_MCIAVI* wma = AVI_mciGetOpenDev(wDevID);
|
|
|
|
|
1999-05-02 16:32:27 +02:00
|
|
|
TRACE_(mciavi)("(%04x, %08lx, %p) : stub\n", wDevID, dwFlags, lpParms);
|
1999-03-15 16:40:27 +01:00
|
|
|
|
|
|
|
if (lpParms == NULL) return MCIERR_NULL_PARAMETER_BLOCK;
|
|
|
|
if (wma == NULL) return MCIERR_INVALID_DEVICE_ID;
|
|
|
|
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
/******************************************************************************
|
|
|
|
* AVI_mciPaste [internal]
|
|
|
|
*/
|
|
|
|
static DWORD AVI_mciPaste(UINT16 wDevID, DWORD dwFlags, LPMCI_DGV_PASTE_PARMS lpParms)
|
|
|
|
{
|
|
|
|
WINE_MCIAVI* wma = AVI_mciGetOpenDev(wDevID);
|
|
|
|
|
1999-05-02 16:32:27 +02:00
|
|
|
TRACE_(mciavi)("(%04x, %08lx, %p) : stub\n", wDevID, dwFlags, lpParms);
|
1999-03-15 16:40:27 +01:00
|
|
|
|
|
|
|
if (lpParms == NULL) return MCIERR_NULL_PARAMETER_BLOCK;
|
|
|
|
if (wma == NULL) return MCIERR_INVALID_DEVICE_ID;
|
|
|
|
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
/******************************************************************************
|
|
|
|
* AVI_mciCue [internal]
|
|
|
|
*/
|
|
|
|
static DWORD AVI_mciCue(UINT16 wDevID, DWORD dwFlags, LPMCI_DGV_CUE_PARMS lpParms)
|
|
|
|
{
|
|
|
|
WINE_MCIAVI* wma = AVI_mciGetOpenDev(wDevID);
|
|
|
|
|
1999-05-02 16:32:27 +02:00
|
|
|
TRACE_(mciavi)("(%04x, %08lx, %p) : stub\n", wDevID, dwFlags, lpParms);
|
1999-03-15 16:40:27 +01:00
|
|
|
|
|
|
|
if (lpParms == NULL) return MCIERR_NULL_PARAMETER_BLOCK;
|
|
|
|
if (wma == NULL) return MCIERR_INVALID_DEVICE_ID;
|
|
|
|
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
/******************************************************************************
|
|
|
|
* AVI_mciCapture [internal]
|
|
|
|
*/
|
|
|
|
static DWORD AVI_mciCapture(UINT16 wDevID, DWORD dwFlags, LPMCI_DGV_CAPTURE_PARMSA lpParms)
|
|
|
|
{
|
|
|
|
WINE_MCIAVI* wma = AVI_mciGetOpenDev(wDevID);
|
|
|
|
|
1999-05-02 16:32:27 +02:00
|
|
|
TRACE_(mciavi)("(%04x, %08lx, %p) : stub\n", wDevID, dwFlags, lpParms);
|
1999-03-15 16:40:27 +01:00
|
|
|
|
|
|
|
if (lpParms == NULL) return MCIERR_NULL_PARAMETER_BLOCK;
|
|
|
|
if (wma == NULL) return MCIERR_INVALID_DEVICE_ID;
|
|
|
|
|
1999-02-13 13:38:09 +01:00
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
1999-03-15 16:40:27 +01:00
|
|
|
/******************************************************************************
|
|
|
|
* AVI_mciMonitor [internal]
|
|
|
|
*/
|
|
|
|
static DWORD AVI_mciMonitor(UINT16 wDevID, DWORD dwFlags, LPMCI_DGV_MONITOR_PARMS lpParms)
|
|
|
|
{
|
|
|
|
WINE_MCIAVI* wma = AVI_mciGetOpenDev(wDevID);
|
|
|
|
|
1999-05-02 16:32:27 +02:00
|
|
|
TRACE_(mciavi)("(%04x, %08lx, %p) : stub\n", wDevID, dwFlags, lpParms);
|
1999-03-15 16:40:27 +01:00
|
|
|
|
|
|
|
if (lpParms == NULL) return MCIERR_NULL_PARAMETER_BLOCK;
|
|
|
|
if (wma == NULL) return MCIERR_INVALID_DEVICE_ID;
|
|
|
|
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
/******************************************************************************
|
|
|
|
* AVI_mciReserve [internal]
|
|
|
|
*/
|
|
|
|
static DWORD AVI_mciReserve(UINT16 wDevID, DWORD dwFlags, LPMCI_DGV_RESERVE_PARMSA lpParms)
|
|
|
|
{
|
|
|
|
WINE_MCIAVI* wma = AVI_mciGetOpenDev(wDevID);
|
|
|
|
|
1999-05-02 16:32:27 +02:00
|
|
|
TRACE_(mciavi)("(%04x, %08lx, %p) : stub\n", wDevID, dwFlags, lpParms);
|
1999-03-15 16:40:27 +01:00
|
|
|
|
|
|
|
if (lpParms == NULL) return MCIERR_NULL_PARAMETER_BLOCK;
|
|
|
|
if (wma == NULL) return MCIERR_INVALID_DEVICE_ID;
|
|
|
|
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
/******************************************************************************
|
|
|
|
* AVI_mciSetAudio [internal]
|
|
|
|
*/
|
|
|
|
static DWORD AVI_mciSetAudio(UINT16 wDevID, DWORD dwFlags, LPMCI_DGV_SETAUDIO_PARMSA lpParms)
|
|
|
|
{
|
|
|
|
WINE_MCIAVI* wma = AVI_mciGetOpenDev(wDevID);
|
|
|
|
|
1999-05-02 16:32:27 +02:00
|
|
|
TRACE_(mciavi)("(%04x, %08lx, %p) : stub\n", wDevID, dwFlags, lpParms);
|
1999-03-15 16:40:27 +01:00
|
|
|
|
|
|
|
if (lpParms == NULL) return MCIERR_NULL_PARAMETER_BLOCK;
|
|
|
|
if (wma == NULL) return MCIERR_INVALID_DEVICE_ID;
|
|
|
|
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
/******************************************************************************
|
|
|
|
* AVI_mciSignal [internal]
|
|
|
|
*/
|
|
|
|
static DWORD AVI_mciSignal(UINT16 wDevID, DWORD dwFlags, LPMCI_DGV_SIGNAL_PARMS lpParms)
|
|
|
|
{
|
|
|
|
WINE_MCIAVI* wma = AVI_mciGetOpenDev(wDevID);
|
|
|
|
|
1999-05-02 16:32:27 +02:00
|
|
|
TRACE_(mciavi)("(%04x, %08lx, %p) : stub\n", wDevID, dwFlags, lpParms);
|
1999-03-15 16:40:27 +01:00
|
|
|
|
|
|
|
if (lpParms == NULL) return MCIERR_NULL_PARAMETER_BLOCK;
|
|
|
|
if (wma == NULL) return MCIERR_INVALID_DEVICE_ID;
|
|
|
|
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
/******************************************************************************
|
|
|
|
* AVI_mciSetVideo [internal]
|
|
|
|
*/
|
|
|
|
static DWORD AVI_mciSetVideo(UINT16 wDevID, DWORD dwFlags, LPMCI_DGV_SETVIDEO_PARMSA lpParms)
|
|
|
|
{
|
|
|
|
WINE_MCIAVI* wma = AVI_mciGetOpenDev(wDevID);
|
|
|
|
|
1999-05-02 16:32:27 +02:00
|
|
|
TRACE_(mciavi)("(%04x, %08lx, %p) : stub\n", wDevID, dwFlags, lpParms);
|
1999-03-15 16:40:27 +01:00
|
|
|
|
|
|
|
if (lpParms == NULL) return MCIERR_NULL_PARAMETER_BLOCK;
|
|
|
|
if (wma == NULL) return MCIERR_INVALID_DEVICE_ID;
|
|
|
|
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
/******************************************************************************
|
|
|
|
* AVI_mciQuality [internal]
|
|
|
|
*/
|
|
|
|
static DWORD AVI_mciQuality(UINT16 wDevID, DWORD dwFlags, LPMCI_DGV_QUALITY_PARMSA lpParms)
|
|
|
|
{
|
|
|
|
WINE_MCIAVI* wma = AVI_mciGetOpenDev(wDevID);
|
|
|
|
|
1999-05-02 16:32:27 +02:00
|
|
|
TRACE_(mciavi)("(%04x, %08lx, %p) : stub\n", wDevID, dwFlags, lpParms);
|
1999-03-15 16:40:27 +01:00
|
|
|
|
|
|
|
if (lpParms == NULL) return MCIERR_NULL_PARAMETER_BLOCK;
|
|
|
|
if (wma == NULL) return MCIERR_INVALID_DEVICE_ID;
|
|
|
|
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
/******************************************************************************
|
|
|
|
* AVI_mciList [internal]
|
|
|
|
*/
|
|
|
|
static DWORD AVI_mciList(UINT16 wDevID, DWORD dwFlags, LPMCI_DGV_LIST_PARMSA lpParms)
|
|
|
|
{
|
|
|
|
WINE_MCIAVI* wma = AVI_mciGetOpenDev(wDevID);
|
|
|
|
|
1999-05-02 16:32:27 +02:00
|
|
|
TRACE_(mciavi)("(%04x, %08lx, %p) : stub\n", wDevID, dwFlags, lpParms);
|
1999-03-15 16:40:27 +01:00
|
|
|
|
|
|
|
if (lpParms == NULL) return MCIERR_NULL_PARAMETER_BLOCK;
|
|
|
|
if (wma == NULL) return MCIERR_INVALID_DEVICE_ID;
|
|
|
|
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
/******************************************************************************
|
|
|
|
* AVI_mciUndo [internal]
|
|
|
|
*/
|
|
|
|
static DWORD AVI_mciUndo(UINT16 wDevID, DWORD dwFlags, LPMCI_GENERIC_PARMS lpParms)
|
|
|
|
{
|
|
|
|
WINE_MCIAVI* wma = AVI_mciGetOpenDev(wDevID);
|
|
|
|
|
1999-05-02 16:32:27 +02:00
|
|
|
TRACE_(mciavi)("(%04x, %08lx, %p) : stub\n", wDevID, dwFlags, lpParms);
|
1999-03-15 16:40:27 +01:00
|
|
|
|
|
|
|
if (lpParms == NULL) return MCIERR_NULL_PARAMETER_BLOCK;
|
|
|
|
if (wma == NULL) return MCIERR_INVALID_DEVICE_ID;
|
|
|
|
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
/******************************************************************************
|
|
|
|
* AVI_mciConfigure [internal]
|
|
|
|
*/
|
|
|
|
static DWORD AVI_mciConfigure(UINT16 wDevID, DWORD dwFlags, LPMCI_GENERIC_PARMS lpParms)
|
|
|
|
{
|
|
|
|
WINE_MCIAVI* wma = AVI_mciGetOpenDev(wDevID);
|
|
|
|
|
1999-05-02 16:32:27 +02:00
|
|
|
TRACE_(mciavi)("(%04x, %08lx, %p) : stub\n", wDevID, dwFlags, lpParms);
|
1999-03-15 16:40:27 +01:00
|
|
|
|
|
|
|
if (lpParms == NULL) return MCIERR_NULL_PARAMETER_BLOCK;
|
|
|
|
if (wma == NULL) return MCIERR_INVALID_DEVICE_ID;
|
|
|
|
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
/******************************************************************************
|
|
|
|
* AVI_mciRestore [internal]
|
|
|
|
*/
|
|
|
|
static DWORD AVI_mciRestore(UINT16 wDevID, DWORD dwFlags, LPMCI_DGV_RESTORE_PARMSA lpParms)
|
|
|
|
{
|
|
|
|
WINE_MCIAVI* wma = AVI_mciGetOpenDev(wDevID);
|
|
|
|
|
1999-05-02 16:32:27 +02:00
|
|
|
TRACE_(mciavi)("(%04x, %08lx, %p) : stub\n", wDevID, dwFlags, lpParms);
|
1999-03-15 16:40:27 +01:00
|
|
|
|
|
|
|
if (lpParms == NULL) return MCIERR_NULL_PARAMETER_BLOCK;
|
|
|
|
if (wma == NULL) return MCIERR_INVALID_DEVICE_ID;
|
|
|
|
|
|
|
|
return 0;
|
|
|
|
}
|
1999-02-13 13:38:09 +01:00
|
|
|
|
|
|
|
/*======================================================================*
|
|
|
|
* MCI AVI entry points *
|
|
|
|
*======================================================================*/
|
|
|
|
|
|
|
|
/**************************************************************************
|
1999-03-15 16:40:27 +01:00
|
|
|
* MCIAVI_DriverProc [sample driver]
|
1999-02-13 13:38:09 +01:00
|
|
|
*/
|
1999-05-02 12:21:49 +02:00
|
|
|
LONG MCIAVI_DriverProc(DWORD dwDevID, HDRVR hDriv, DWORD wMsg,
|
1999-03-15 16:40:27 +01:00
|
|
|
DWORD dwParam1, DWORD dwParam2)
|
1999-02-13 13:38:09 +01:00
|
|
|
{
|
|
|
|
switch (wMsg) {
|
|
|
|
case DRV_LOAD: return 1;
|
|
|
|
case DRV_FREE: return 1;
|
1999-05-02 12:21:49 +02:00
|
|
|
case DRV_OPEN: return AVI_drvOpen((LPSTR)dwParam1, (LPMCI_OPEN_DRIVER_PARMSA)dwParam2);
|
|
|
|
case DRV_CLOSE: return AVI_drvClose(dwDevID);
|
1999-02-13 13:38:09 +01:00
|
|
|
case DRV_ENABLE: return 1;
|
|
|
|
case DRV_DISABLE: return 1;
|
|
|
|
case DRV_QUERYCONFIGURE: return 1;
|
1999-02-26 12:11:13 +01:00
|
|
|
case DRV_CONFIGURE: MessageBoxA(0, "Sample AVI Wine Driver !", "MM-Wine Driver", MB_OK); return 1;
|
1999-02-13 13:38:09 +01:00
|
|
|
case DRV_INSTALL: return DRVCNF_RESTART;
|
|
|
|
case DRV_REMOVE: return DRVCNF_RESTART;
|
1999-03-15 16:40:27 +01:00
|
|
|
|
|
|
|
case MCI_OPEN_DRIVER: return AVI_mciOpen (dwDevID, dwParam1, (LPMCI_DGV_OPEN_PARMSA) dwParam2);
|
|
|
|
case MCI_CLOSE_DRIVER: return AVI_mciClose (dwDevID, dwParam1, (LPMCI_GENERIC_PARMS) dwParam2);
|
|
|
|
case MCI_PLAY: return AVI_mciPlay (dwDevID, dwParam1, (LPMCI_PLAY_PARMS) dwParam2);
|
|
|
|
case MCI_RECORD: return AVI_mciRecord (dwDevID, dwParam1, (LPMCI_DGV_RECORD_PARMS) dwParam2);
|
|
|
|
case MCI_STOP: return AVI_mciStop (dwDevID, dwParam1, (LPMCI_GENERIC_PARMS) dwParam2);
|
|
|
|
case MCI_SET: return AVI_mciSet (dwDevID, dwParam1, (LPMCI_DGV_SET_PARMS) dwParam2);
|
|
|
|
case MCI_PAUSE: return AVI_mciPause (dwDevID, dwParam1, (LPMCI_GENERIC_PARMS) dwParam2);
|
|
|
|
case MCI_RESUME: return AVI_mciResume (dwDevID, dwParam1, (LPMCI_GENERIC_PARMS) dwParam2);
|
|
|
|
case MCI_STATUS: return AVI_mciStatus (dwDevID, dwParam1, (LPMCI_DGV_STATUS_PARMSA) dwParam2);
|
|
|
|
case MCI_GETDEVCAPS: return AVI_mciGetDevCaps(dwDevID, dwParam1, (LPMCI_GETDEVCAPS_PARMS) dwParam2);
|
|
|
|
case MCI_INFO: return AVI_mciInfo (dwDevID, dwParam1, (LPMCI_DGV_INFO_PARMSA) dwParam2);
|
|
|
|
case MCI_SEEK: return AVI_mciSeek (dwDevID, dwParam1, (LPMCI_SEEK_PARMS) dwParam2);
|
|
|
|
case MCI_PUT: return AVI_mciPut (dwDevID, dwParam1, (LPMCI_DGV_PUT_PARMS) dwParam2);
|
|
|
|
case MCI_WINDOW: return AVI_mciWindow (dwDevID, dwParam1, (LPMCI_DGV_WINDOW_PARMSA) dwParam2);
|
|
|
|
case MCI_LOAD: return AVI_mciLoad (dwDevID, dwParam1, (LPMCI_DGV_LOAD_PARMSA) dwParam2);
|
|
|
|
case MCI_SAVE: return AVI_mciSave (dwDevID, dwParam1, (LPMCI_DGV_SAVE_PARMSA) dwParam2);
|
|
|
|
case MCI_FREEZE: return AVI_mciFreeze (dwDevID, dwParam1, (LPMCI_DGV_RECT_PARMS) dwParam2);
|
|
|
|
case MCI_REALIZE: return AVI_mciRealize (dwDevID, dwParam1, (LPMCI_GENERIC_PARMS) dwParam2);
|
|
|
|
case MCI_UNFREEZE: return AVI_mciUnFreeze (dwDevID, dwParam1, (LPMCI_DGV_RECT_PARMS) dwParam2);
|
|
|
|
case MCI_UPDATE: return AVI_mciUpdate (dwDevID, dwParam1, (LPMCI_DGV_UPDATE_PARMS) dwParam2);
|
|
|
|
case MCI_WHERE: return AVI_mciWhere (dwDevID, dwParam1, (LPMCI_DGV_RECT_PARMS) dwParam2);
|
|
|
|
case MCI_STEP: return AVI_mciStep (dwDevID, dwParam1, (LPMCI_DGV_STEP_PARMS) dwParam2);
|
|
|
|
case MCI_COPY: return AVI_mciCopy (dwDevID, dwParam1, (LPMCI_DGV_COPY_PARMS) dwParam2);
|
|
|
|
case MCI_CUT: return AVI_mciCut (dwDevID, dwParam1, (LPMCI_DGV_CUT_PARMS) dwParam2);
|
|
|
|
case MCI_DELETE: return AVI_mciDelete (dwDevID, dwParam1, (LPMCI_DGV_DELETE_PARMS) dwParam2);
|
|
|
|
case MCI_PASTE: return AVI_mciPaste (dwDevID, dwParam1, (LPMCI_DGV_PASTE_PARMS) dwParam2);
|
|
|
|
case MCI_CUE: return AVI_mciCue (dwDevID, dwParam1, (LPMCI_DGV_CUE_PARMS) dwParam2);
|
|
|
|
/* Digital Video specific */
|
|
|
|
case MCI_CAPTURE: return AVI_mciCapture (dwDevID, dwParam1, (LPMCI_DGV_CAPTURE_PARMSA) dwParam2);
|
|
|
|
case MCI_MONITOR: return AVI_mciMonitor (dwDevID, dwParam1, (LPMCI_DGV_MONITOR_PARMS) dwParam2);
|
|
|
|
case MCI_RESERVE: return AVI_mciReserve (dwDevID, dwParam1, (LPMCI_DGV_RESERVE_PARMSA) dwParam2);
|
|
|
|
case MCI_SETAUDIO: return AVI_mciSetAudio (dwDevID, dwParam1, (LPMCI_DGV_SETAUDIO_PARMSA) dwParam2);
|
|
|
|
case MCI_SIGNAL: return AVI_mciSignal (dwDevID, dwParam1, (LPMCI_DGV_SIGNAL_PARMS) dwParam2);
|
|
|
|
case MCI_SETVIDEO: return AVI_mciSetVideo (dwDevID, dwParam1, (LPMCI_DGV_SETVIDEO_PARMSA) dwParam2);
|
|
|
|
case MCI_QUALITY: return AVI_mciQuality (dwDevID, dwParam1, (LPMCI_DGV_QUALITY_PARMSA) dwParam2);
|
|
|
|
case MCI_LIST: return AVI_mciList (dwDevID, dwParam1, (LPMCI_DGV_LIST_PARMSA) dwParam2);
|
|
|
|
case MCI_UNDO: return AVI_mciUndo (dwDevID, dwParam1, (LPMCI_GENERIC_PARMS) dwParam2);
|
|
|
|
case MCI_CONFIGURE: return AVI_mciConfigure (dwDevID, dwParam1, (LPMCI_GENERIC_PARMS) dwParam2);
|
|
|
|
case MCI_RESTORE: return AVI_mciRestore (dwDevID, dwParam1, (LPMCI_DGV_RESTORE_PARMSA) dwParam2);
|
|
|
|
|
|
|
|
case MCI_SPIN:
|
1999-02-13 13:38:09 +01:00
|
|
|
case MCI_ESCAPE:
|
1999-05-02 16:32:27 +02:00
|
|
|
WARN_(mciavi)("Unsupported command=%s\n", MCI_CommandToString(wMsg));
|
1999-02-13 13:38:09 +01:00
|
|
|
break;
|
|
|
|
case MCI_OPEN:
|
|
|
|
case MCI_CLOSE:
|
1999-05-02 16:32:27 +02:00
|
|
|
FIXME_(mciavi)("Shouldn't receive a MCI_OPEN or CLOSE message\n");
|
1999-02-13 13:38:09 +01:00
|
|
|
break;
|
|
|
|
default:
|
1999-05-02 16:32:27 +02:00
|
|
|
TRACE_(mciavi)("Sending msg=%s to default driver proc\n", MCI_CommandToString(wMsg));
|
1999-02-26 12:11:13 +01:00
|
|
|
return DefDriverProc(dwDevID, hDriv, wMsg, dwParam1, dwParam2);
|
1999-02-13 13:38:09 +01:00
|
|
|
}
|
|
|
|
return MCIERR_UNRECOGNIZED_COMMAND;
|
|
|
|
}
|
1999-03-15 16:40:27 +01:00
|
|
|
|
|
|
|
|