mirror of
https://github.com/reactos/wine.git
synced 2024-11-24 20:30:01 +00:00
64 lines
1.8 KiB
C
64 lines
1.8 KiB
C
/* -*- tab-width: 8; c-basic-offset: 4 -*- */
|
|
/*
|
|
* Wine Driver for Open Sound System
|
|
*
|
|
* Copyright 1999 Eric Pouech
|
|
*
|
|
* This library is free software; you can redistribute it and/or
|
|
* modify it under the terms of the GNU Lesser General Public
|
|
* License as published by the Free Software Foundation; either
|
|
* version 2.1 of the License, or (at your option) any later version.
|
|
*
|
|
* This library is distributed in the hope that it will be useful,
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
* Lesser General Public License for more details.
|
|
*
|
|
* You should have received a copy of the GNU Lesser General Public
|
|
* License along with this library; if not, write to the Free Software
|
|
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
|
|
*/
|
|
|
|
#include "config.h"
|
|
|
|
#include <stdarg.h>
|
|
|
|
#include "windef.h"
|
|
#include "winbase.h"
|
|
#include "wingdi.h"
|
|
#include "winuser.h"
|
|
#include "mmddk.h"
|
|
#include "oss.h"
|
|
#include "wine/debug.h"
|
|
|
|
WINE_DEFAULT_DEBUG_CHANNEL(wave);
|
|
|
|
/**************************************************************************
|
|
* DriverProc (WINEOSS.1)
|
|
*/
|
|
LRESULT CALLBACK OSS_DriverProc(DWORD_PTR dwDevID, HDRVR hDriv, UINT wMsg,
|
|
LPARAM dwParam1, LPARAM dwParam2)
|
|
{
|
|
TRACE("(%08lX, %p, %08X, %08lX, %08lX)\n",
|
|
dwDevID, hDriv, wMsg, dwParam1, dwParam2);
|
|
|
|
switch(wMsg) {
|
|
#ifdef HAVE_OSS
|
|
case DRV_LOAD:
|
|
case DRV_FREE:
|
|
case DRV_OPEN:
|
|
case DRV_CLOSE:
|
|
case DRV_ENABLE:
|
|
case DRV_DISABLE:
|
|
case DRV_QUERYCONFIGURE:
|
|
return 1;
|
|
case DRV_CONFIGURE: MessageBoxA(0, "OSS MultiMedia Driver !", "OSS Driver", MB_OK); return 1;
|
|
case DRV_INSTALL:
|
|
case DRV_REMOVE:
|
|
return DRV_SUCCESS;
|
|
#endif
|
|
default:
|
|
return 0;
|
|
}
|
|
}
|