2 * Wine Driver for EsounD Sound Server
3 * http://www.tux.org/~ricdude/EsounD.html
5 * Copyright 2004 Zhangrong Huang <hzhr@users.sourceforge.net>
7 * Code massively copied from Eric Pouech's OSS driver
8 * and Chris Morgan aRts driver
10 * This library is free software; you can redistribute it and/or
11 * modify it under the terms of the GNU Lesser General Public
12 * License as published by the Free Software Foundation; either
13 * version 2.1 of the License, or (at your option) any later version.
15 * This library is distributed in the hope that it will be useful,
16 * but WITHOUT ANY WARRANTY; without even the implied warranty of
17 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
18 * Lesser General Public License for more details.
20 * You should have received a copy of the GNU Lesser General Public
21 * License along with this library; if not, write to the Free Software
22 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
39 /**************************************************************************
40 * ESD_drvOpen [internal]
42 static DWORD ESD_drvOpen(LPSTR str)
47 /* I know, this is ugly, but who cares... */
52 /**************************************************************************
53 * ESD_drvClose [internal]
55 static DWORD ESD_drvClose(DWORD dwDevID)
63 #endif /* #ifdef HAVE_ESD */
66 /**************************************************************************
67 * DriverProc (WINEESD.@)
69 LONG CALLBACK ESD_DriverProc(DWORD dwDevID, HDRVR hDriv, DWORD wMsg,
70 DWORD dwParam1, DWORD dwParam2)
72 /* EPP TRACE("(%08lX, %04X, %08lX, %08lX, %08lX)\n", */
73 /* EPP dwDevID, hDriv, wMsg, dwParam1, dwParam2); */
77 case DRV_LOAD: if (ESD_WaveInit()<0) return 0;
79 case DRV_FREE: return ESD_WaveClose();
80 case DRV_OPEN: return ESD_drvOpen((LPSTR)dwParam1);
81 case DRV_CLOSE: return ESD_drvClose(dwDevID);
82 case DRV_ENABLE: return 1;
83 case DRV_DISABLE: return 1;
84 case DRV_QUERYCONFIGURE: return 1;
85 case DRV_CONFIGURE: MessageBoxA(0, "EsounD MultiMedia Driver!", "EsounD Driver", MB_OK); return 1;
86 case DRV_INSTALL: return DRVCNF_RESTART;
87 case DRV_REMOVE: return DRVCNF_RESTART;
90 return DefDriverProc(dwDevID, hDriv, wMsg, dwParam1, dwParam2);