1999-09-22 18:52:47 +02:00
|
|
|
/* -*- tab-width: 8; c-basic-offset: 4 -*- */
|
2002-06-01 01:06:46 +02:00
|
|
|
/*
|
1999-09-22 18:52:47 +02:00
|
|
|
* Wine Driver for Open Sound System
|
|
|
|
*
|
|
|
|
* Copyright 1999 Eric Pouech
|
2002-03-10 00:29:33 +01:00
|
|
|
*
|
|
|
|
* 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
|
2006-05-18 14:49:52 +02:00
|
|
|
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
|
1999-09-22 18:52:47 +02:00
|
|
|
*/
|
|
|
|
|
2001-01-25 23:23:08 +01:00
|
|
|
#include "config.h"
|
|
|
|
|
2003-09-06 01:08:26 +02:00
|
|
|
#include <stdarg.h>
|
|
|
|
|
2000-02-10 20:03:02 +01:00
|
|
|
#include "windef.h"
|
2000-12-19 05:53:20 +01:00
|
|
|
#include "winbase.h"
|
2000-02-10 20:03:02 +01:00
|
|
|
#include "wingdi.h"
|
1999-09-22 18:52:47 +02:00
|
|
|
#include "winuser.h"
|
|
|
|
#include "mmddk.h"
|
|
|
|
#include "oss.h"
|
2005-12-08 12:00:33 +01:00
|
|
|
#include "wine/debug.h"
|
|
|
|
|
|
|
|
WINE_DEFAULT_DEBUG_CHANNEL(wave);
|
1999-09-22 18:52:47 +02:00
|
|
|
|
|
|
|
/**************************************************************************
|
2001-07-11 20:56:41 +02:00
|
|
|
* DriverProc (WINEOSS.1)
|
1999-09-22 18:52:47 +02:00
|
|
|
*/
|
2005-11-28 20:53:22 +01:00
|
|
|
LRESULT CALLBACK OSS_DriverProc(DWORD_PTR dwDevID, HDRVR hDriv, UINT wMsg,
|
|
|
|
LPARAM dwParam1, LPARAM dwParam2)
|
1999-09-22 18:52:47 +02:00
|
|
|
{
|
2005-12-08 12:00:33 +01:00
|
|
|
TRACE("(%08lX, %p, %08X, %08lX, %08lX)\n",
|
|
|
|
dwDevID, hDriv, wMsg, dwParam1, dwParam2);
|
2002-06-01 01:06:46 +02:00
|
|
|
|
1999-09-22 18:52:47 +02:00
|
|
|
switch(wMsg) {
|
2000-12-27 19:43:30 +01:00
|
|
|
#ifdef HAVE_OSS
|
2010-04-21 13:45:31 +02:00
|
|
|
case DRV_LOAD:
|
|
|
|
case DRV_FREE:
|
2010-04-21 13:45:28 +02:00
|
|
|
case DRV_OPEN:
|
|
|
|
case DRV_CLOSE:
|
|
|
|
case DRV_ENABLE:
|
|
|
|
case DRV_DISABLE:
|
|
|
|
case DRV_QUERYCONFIGURE:
|
|
|
|
return 1;
|
1999-09-22 18:52:47 +02:00
|
|
|
case DRV_CONFIGURE: MessageBoxA(0, "OSS MultiMedia Driver !", "OSS Driver", MB_OK); return 1;
|
2010-04-21 13:45:28 +02:00
|
|
|
case DRV_INSTALL:
|
|
|
|
case DRV_REMOVE:
|
|
|
|
return DRV_SUCCESS;
|
2000-12-27 19:43:30 +01:00
|
|
|
#endif
|
1999-09-22 18:52:47 +02:00
|
|
|
default:
|
2010-04-21 13:45:28 +02:00
|
|
|
return 0;
|
1999-09-22 18:52:47 +02:00
|
|
|
}
|
|
|
|
}
|