Module: wine
Branch: master
Commit: ce91ee441ab57a1d13207a244ada756ee00260e1
URL: http://source.winehq.org/git/wine.git/?a=commit;h=ce91ee441ab57a1d13207a244…
Author: Maarten Lankhorst <m.b.lankhorst(a)gmail.com>
Date: Wed Apr 21 13:45:30 2010 +0200
winenas.drv: Move opening wave device to audio.c.
---
dlls/winenas.drv/audio.c | 7 ++++---
dlls/winenas.drv/nas.c | 6 ++----
dlls/winenas.drv/nas.h | 28 ----------------------------
3 files changed, 6 insertions(+), 35 deletions(-)
diff --git a/dlls/winenas.drv/audio.c b/dlls/winenas.drv/audio.c
index 10d0b73..391ab40 100644
--- a/dlls/winenas.drv/audio.c
+++ b/dlls/winenas.drv/audio.c
@@ -81,7 +81,6 @@
#include "mmddk.h"
#include "dsound.h"
#include "dsdriver.h"
-#include "nas.h"
#include "wine/unicode.h"
#include "wine/debug.h"
@@ -396,7 +395,7 @@ static void NAS_CloseDevice(WINE_WAVEOUT* wwo)
/******************************************************************
* NAS_WaveClose
*/
-LONG NAS_WaveClose(void)
+static LONG NAS_WaveClose(void)
{
nas_end(); /* free up nas server */
return 1;
@@ -407,7 +406,7 @@ LONG NAS_WaveClose(void)
*
* Initialize internal structures from NAS server info
*/
-LONG NAS_WaveInit(void)
+static LONG NAS_WaveInit(void)
{
int i;
if (!nas_init()) return MMSYSERR_ERROR;
@@ -1213,7 +1212,9 @@ DWORD WINAPI NAS_wodMessage(UINT wDevID, UINT wMsg, DWORD dwUser,
switch (wMsg) {
case DRVM_INIT:
+ return NAS_WaveInit();
case DRVM_EXIT:
+ return NAS_WaveClose();
case DRVM_ENABLE:
case DRVM_DISABLE:
/* FIXME: Pretend this is supported */
diff --git a/dlls/winenas.drv/nas.c b/dlls/winenas.drv/nas.c
index 0cc2fc6..916e5b0 100644
--- a/dlls/winenas.drv/nas.c
+++ b/dlls/winenas.drv/nas.c
@@ -33,7 +33,6 @@
#include "wingdi.h"
#include "winuser.h"
#include "mmddk.h"
-#include "nas.h"
/**************************************************************************
* DriverProc (WINENAS.@)
@@ -43,9 +42,8 @@ LRESULT CALLBACK NAS_DriverProc(DWORD_PTR dwDevID, HDRVR hDriv, UINT wMsg,
{
switch(wMsg) {
#ifdef HAVE_NAS
- case DRV_LOAD: NAS_WaveInit();
- return 1;
- case DRV_FREE: return NAS_WaveClose();
+ case DRV_LOAD:
+ case DRV_FREE:
case DRV_OPEN:
case DRV_CLOSE:
case DRV_ENABLE:
diff --git a/dlls/winenas.drv/nas.h b/dlls/winenas.drv/nas.h
deleted file mode 100644
index 603d87b..0000000
--- a/dlls/winenas.drv/nas.h
+++ /dev/null
@@ -1,28 +0,0 @@
-/* Definition for NAS driver : wine multimedia system
- *
- * Copyright 2002 Nicolas Escuder <n.escuder(a)alineanet.com>
- *
- * 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
- */
-
-#ifndef __WINE_NAS_H
-#define __WINE_NAS_H
-
-extern LONG NAS_WaveInit(void);
-extern LONG NAS_WaveClose(void);
-
-typedef unsigned int AFormat;
-
-#endif /* __WINE_NAS_H */