Commit ce91ee44 authored by Maarten Lankhorst's avatar Maarten Lankhorst Committed by Alexandre Julliard

winenas.drv: Move opening wave device to audio.c.

parent 0ceed8be
...@@ -81,7 +81,6 @@ ...@@ -81,7 +81,6 @@
#include "mmddk.h" #include "mmddk.h"
#include "dsound.h" #include "dsound.h"
#include "dsdriver.h" #include "dsdriver.h"
#include "nas.h"
#include "wine/unicode.h" #include "wine/unicode.h"
#include "wine/debug.h" #include "wine/debug.h"
...@@ -396,7 +395,7 @@ static void NAS_CloseDevice(WINE_WAVEOUT* wwo) ...@@ -396,7 +395,7 @@ static void NAS_CloseDevice(WINE_WAVEOUT* wwo)
/****************************************************************** /******************************************************************
* NAS_WaveClose * NAS_WaveClose
*/ */
LONG NAS_WaveClose(void) static LONG NAS_WaveClose(void)
{ {
nas_end(); /* free up nas server */ nas_end(); /* free up nas server */
return 1; return 1;
...@@ -407,7 +406,7 @@ LONG NAS_WaveClose(void) ...@@ -407,7 +406,7 @@ LONG NAS_WaveClose(void)
* *
* Initialize internal structures from NAS server info * Initialize internal structures from NAS server info
*/ */
LONG NAS_WaveInit(void) static LONG NAS_WaveInit(void)
{ {
int i; int i;
if (!nas_init()) return MMSYSERR_ERROR; if (!nas_init()) return MMSYSERR_ERROR;
...@@ -1213,7 +1212,9 @@ DWORD WINAPI NAS_wodMessage(UINT wDevID, UINT wMsg, DWORD dwUser, ...@@ -1213,7 +1212,9 @@ DWORD WINAPI NAS_wodMessage(UINT wDevID, UINT wMsg, DWORD dwUser,
switch (wMsg) { switch (wMsg) {
case DRVM_INIT: case DRVM_INIT:
return NAS_WaveInit();
case DRVM_EXIT: case DRVM_EXIT:
return NAS_WaveClose();
case DRVM_ENABLE: case DRVM_ENABLE:
case DRVM_DISABLE: case DRVM_DISABLE:
/* FIXME: Pretend this is supported */ /* FIXME: Pretend this is supported */
......
...@@ -33,7 +33,6 @@ ...@@ -33,7 +33,6 @@
#include "wingdi.h" #include "wingdi.h"
#include "winuser.h" #include "winuser.h"
#include "mmddk.h" #include "mmddk.h"
#include "nas.h"
/************************************************************************** /**************************************************************************
* DriverProc (WINENAS.@) * DriverProc (WINENAS.@)
...@@ -43,9 +42,8 @@ LRESULT CALLBACK NAS_DriverProc(DWORD_PTR dwDevID, HDRVR hDriv, UINT wMsg, ...@@ -43,9 +42,8 @@ LRESULT CALLBACK NAS_DriverProc(DWORD_PTR dwDevID, HDRVR hDriv, UINT wMsg,
{ {
switch(wMsg) { switch(wMsg) {
#ifdef HAVE_NAS #ifdef HAVE_NAS
case DRV_LOAD: NAS_WaveInit(); case DRV_LOAD:
return 1; case DRV_FREE:
case DRV_FREE: return NAS_WaveClose();
case DRV_OPEN: case DRV_OPEN:
case DRV_CLOSE: case DRV_CLOSE:
case DRV_ENABLE: case DRV_ENABLE:
......
/* Definition for NAS driver : wine multimedia system
*
* Copyright 2002 Nicolas Escuder <n.escuder@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 */
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment