Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-winehq
Commits
4c719464
Commit
4c719464
authored
Mar 28, 2011
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
winenas.drv: Remove unnecessary ifdefs.
parent
6eea1119
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
22 additions
and
80 deletions
+22
-80
configure
configure
+1
-4
configure.ac
configure.ac
+1
-2
Makefile.in
dlls/winenas.drv/Makefile.in
+1
-2
audio.c
dlls/winenas.drv/audio.c
+19
-8
nas.c
dlls/winenas.drv/nas.c
+0
-61
config.h.in
include/config.h.in
+0
-3
No files found.
configure
View file @
4c719464
...
...
@@ -9039,10 +9039,7 @@ fi
{
$as_echo
"
$as_me
:
${
as_lineno
-
$LINENO
}
: result:
$ac_cv_lib_audio_AuCreateFlow
"
>
&5
$as_echo
"
$ac_cv_lib_audio_AuCreateFlow
"
>
&6
;
}
if
test
"x
$ac_cv_lib_audio_AuCreateFlow
"
=
x
""
yes
;
then
:
$as_echo
"#define HAVE_NAS 1"
>>
confdefs.h
{
$as_echo
"
$as_me
:
${
as_lineno
-
$LINENO
}
: checking for XauGetBestAuthByAddr in -lXau"
>
&5
{
$as_echo
"
$as_me
:
${
as_lineno
-
$LINENO
}
: checking for XauGetBestAuthByAddr in -lXau"
>
&5
$as_echo_n
"checking for XauGetBestAuthByAddr in -lXau... "
>
&6
;
}
if
test
"
${
ac_cv_lib_Xau_XauGetBestAuthByAddr
+set
}
"
=
set
;
then
:
$as_echo_n
"(cached) "
>
&6
...
...
configure.ac
View file @
4c719464
...
...
@@ -1112,8 +1112,7 @@ OpenGL and Direct3D won't be supported.])
AC_CHECK_HEADERS(audio/audiolib.h,
[AC_CHECK_HEADERS(audio/soundlib.h,,,[#include <audio/audiolib.h>])
AC_CHECK_LIB(audio,AuCreateFlow,
[AC_DEFINE(HAVE_NAS,1,[Define if you have NAS including devel headers])
AC_CHECK_LIB(Xau,XauGetBestAuthByAddr,
[AC_CHECK_LIB(Xau,XauGetBestAuthByAddr,
[NASLIBS="-lXau -laudio -lXt $X_LIBS $XLIB $X_EXTRA_LIBS"],
[NASLIBS="-laudio -lXt $X_LIBS $XLIB $X_EXTRA_LIBS"],
[$X_LIBS])
...
...
dlls/winenas.drv/Makefile.in
View file @
4c719464
...
...
@@ -4,7 +4,6 @@ EXTRAINCL = @X_CFLAGS@
EXTRALIBS
=
@NASLIBS@
C_SRCS
=
\
audio.c
\
nas.c
audio.c
@MAKE_DLL_RULES@
dlls/winenas.drv/audio.c
View file @
4c719464
...
...
@@ -89,8 +89,6 @@ WINE_DEFAULT_DEBUG_CHANNEL(wave);
/* Allow 1% deviation for sample rates (some ES137x cards) */
#define NEAR_MATCH(rate1,rate2) (((100*((int)(rate1)-(int)(rate2)))/(rate1))==0)
#ifdef HAVE_NAS
static
AuServer
*
AuServ
;
#define MAX_WAVEOUTDRV (1)
...
...
@@ -1489,14 +1487,27 @@ static int nas_end(void)
return
1
;
}
#else
/* !HAVE_NAS */
/**************************************************************************
*
wodMessage
(WINENAS.@)
*
DriverProc
(WINENAS.@)
*/
DWORD
WINAPI
NAS_wodMessage
(
WORD
wDevID
,
WORD
wMsg
,
DWORD
dwUser
,
DWORD
dwParam1
,
DWORD
dwParam2
)
LRESULT
CALLBACK
NAS_DriverProc
(
DWORD_PTR
dwDevID
,
HDRVR
hDriv
,
UINT
wMsg
,
LPARAM
dwParam1
,
LPARAM
dwParam2
)
{
FIXME
(
"(%u, %04X, %08X, %08X, %08X):stub
\n
"
,
wDevID
,
wMsg
,
dwUser
,
dwParam1
,
dwParam2
);
return
MMSYSERR_NOTENABLED
;
switch
(
wMsg
)
{
case
DRV_LOAD
:
case
DRV_FREE
:
case
DRV_OPEN
:
case
DRV_CLOSE
:
case
DRV_ENABLE
:
case
DRV_DISABLE
:
case
DRV_QUERYCONFIGURE
:
return
1
;
case
DRV_CONFIGURE
:
MessageBoxA
(
0
,
"NAS MultiMedia Driver !"
,
"NAS Driver"
,
MB_OK
);
return
1
;
case
DRV_INSTALL
:
case
DRV_REMOVE
:
return
DRV_SUCCESS
;
default:
return
0
;
}
}
#endif
dlls/winenas.drv/nas.c
deleted
100644 → 0
View file @
6eea1119
/* -*- tab-width: 8; c-basic-offset: 4 -*- */
/*
*
* Wine Driver for NAS Network Audio System
* http://radscan.com/nas.html
*
* Copyright 2002 Nicolas Escuder <n.escuder@alineanet.com>
*
* Code massively copied from Eric Pouech's OSS driver
* and Chris Morgan aRts 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., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
*/
#include "config.h"
#include <stdarg.h>
#include "windef.h"
#include "winbase.h"
#include "wingdi.h"
#include "winuser.h"
#include "mmddk.h"
/**************************************************************************
* DriverProc (WINENAS.@)
*/
LRESULT
CALLBACK
NAS_DriverProc
(
DWORD_PTR
dwDevID
,
HDRVR
hDriv
,
UINT
wMsg
,
LPARAM
dwParam1
,
LPARAM
dwParam2
)
{
switch
(
wMsg
)
{
#ifdef HAVE_NAS
case
DRV_LOAD
:
case
DRV_FREE
:
case
DRV_OPEN
:
case
DRV_CLOSE
:
case
DRV_ENABLE
:
case
DRV_DISABLE
:
case
DRV_QUERYCONFIGURE
:
return
1
;
case
DRV_CONFIGURE
:
MessageBoxA
(
0
,
"NAS MultiMedia Driver !"
,
"NAS Driver"
,
MB_OK
);
return
1
;
case
DRV_INSTALL
:
case
DRV_REMOVE
:
return
DRV_SUCCESS
;
#endif
default:
return
0
;
}
}
include/config.h.in
View file @
4c719464
...
...
@@ -503,9 +503,6 @@
/* Define to 1 if you have the <mpg123.h> header file. */
#undef HAVE_MPG123_H
/* Define if you have NAS including devel headers */
#undef HAVE_NAS
/* Define to 1 if you have the <ncurses.h> header file. */
#undef HAVE_NCURSES_H
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment