⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 arts.c

📁 Wine-20031016
💻 C
字号:
/* -*- tab-width: 8; c-basic-offset: 4 -*- *//* * Wine Driver for aRts Sound Server *   http://www.arts-project.org * * Copyright 2002 Chris Morgan<cmorgan@alum.wpi.edu> * Code massively copied from Eric Pouech's OSS driver * * 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., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA */#include "config.h"#include <stdarg.h>#include "windef.h"#include "winbase.h"#include "wingdi.h"#include "winuser.h"#include "mmddk.h"#include "arts.h"#ifdef HAVE_ARTSstatic		int arts = 0;/************************************************************************** * 				ARTS_drvOpen			[internal] */static	DWORD	ARTS_drvOpen(LPSTR str){    if (arts)	return 0;    /* I know, this is ugly, but who cares... */    arts = 1;    return 1;}/************************************************************************** * 				ARTS_drvClose			[internal] */static	DWORD	ARTS_drvClose(DWORD dwDevID){    if (arts) {	arts = 0;	return 1;    }    return 0;}#endif /* #ifdef HAVE_ARTS *//************************************************************************** * 				DriverProc (WINEARTS.@) */LONG CALLBACK	ARTS_DriverProc(DWORD dwDevID, HDRVR hDriv, DWORD wMsg,			       DWORD dwParam1, DWORD dwParam2){/* EPP     TRACE("(%08lX, %04X, %08lX, %08lX, %08lX)\n",  *//* EPP 	  dwDevID, hDriv, wMsg, dwParam1, dwParam2); */    switch(wMsg) {#ifdef HAVE_ARTS    case DRV_LOAD:		ARTS_WaveInit();/*    				ARTS_MidiInit(); FIXME: no midisupport in artsc so we don't have any in the arts driver */				return 1;    case DRV_FREE:	        return ARTS_WaveClose();    case DRV_OPEN:		return ARTS_drvOpen((LPSTR)dwParam1);    case DRV_CLOSE:		return ARTS_drvClose(dwDevID);    case DRV_ENABLE:		return 1;    case DRV_DISABLE:		return 1;    case DRV_QUERYCONFIGURE:	return 1;    case DRV_CONFIGURE:		MessageBoxA(0, "aRts MultiMedia Driver!", "aRts Driver", MB_OK);	return 1;    case DRV_INSTALL:		return DRVCNF_RESTART;    case DRV_REMOVE:		return DRVCNF_RESTART;#endif    default:	return DefDriverProc(dwDevID, hDriv, wMsg, dwParam1, dwParam2);    }}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -