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
d25763d4
Commit
d25763d4
authored
Mar 28, 2011
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
winejack.drv: Remove unnecessary ifdefs.
parent
4c719464
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
49 additions
and
173 deletions
+49
-173
Makefile.in
dlls/winejack.drv/Makefile.in
+1
-2
audio.c
dlls/winejack.drv/audio.c
+48
-24
jack.c
dlls/winejack.drv/jack.c
+0
-122
jack.h
dlls/winejack.drv/jack.h
+0
-25
No files found.
dlls/winejack.drv/Makefile.in
View file @
d25763d4
...
...
@@ -2,7 +2,6 @@ MODULE = winejack.drv
IMPORTS
=
dxguid uuid winmm user32
C_SRCS
=
\
audio.c
\
jack.c
audio.c
@MAKE_DLL_RULES@
dlls/winejack.drv/audio.c
View file @
d25763d4
...
...
@@ -51,7 +51,6 @@
#include "mmddk.h"
#include "dsound.h"
#include "dsdriver.h"
#include "jack.h"
#include "wine/unicode.h"
#include "wine/library.h"
#include "wine/debug.h"
...
...
@@ -63,8 +62,6 @@
WINE_DEFAULT_DEBUG_CHANNEL
(
wave
);
#ifdef SONAME_LIBJACK
#define MAKE_FUNCPTR(f) static typeof(f) * fp_##f = NULL;
/* Function pointers for dynamic loading of libjack */
...
...
@@ -86,6 +83,8 @@ MAKE_FUNCPTR(jack_port_name);
MAKE_FUNCPTR
(
jack_get_buffer_size
);
#undef MAKE_FUNCPTR
static
void
*
jackhandle
;
/* define the below to work around a bug in jack where closing a port */
/* takes a very long time, so to get around this we actually don't */
/* close the port when the device is closed but instead mark the */
...
...
@@ -2396,28 +2395,53 @@ DWORD WINAPI JACK_widMessage(WORD wDevID, WORD wMsg, DWORD dwUser,
return
MMSYSERR_NOTSUPPORTED
;
}
#else
/* !SONAME_LIBJACK */
/**************************************************************************
*
widMessage (WINEJACK.6
)
*
DriverProc (WINEJACK.1
)
*/
DWORD
WINAPI
JACK_widMessage
(
WORD
wDevID
,
WORD
wMsg
,
DWORD
dwUser
,
DWORD_PTR
dwParam1
,
DWORD_PTR
dwParam2
)
{
FIXME
(
"(%u, %04X, %08X, %08lX, %08lX):jack support not compiled into wine
\n
"
,
wDevID
,
wMsg
,
dwUser
,
dwParam1
,
dwParam2
);
return
MMSYSERR_NOTENABLED
;
}
/**************************************************************************
* wodMessage (WINEJACK.7)
*/
DWORD
WINAPI
JACK_wodMessage
(
WORD
wDevID
,
WORD
wMsg
,
DWORD
dwUser
,
DWORD_PTR
dwParam1
,
DWORD_PTR
dwParam2
)
LRESULT
CALLBACK
JACK_DriverProc
(
DWORD_PTR
dwDevID
,
HDRVR
hDriv
,
UINT
wMsg
,
LPARAM
dwParam1
,
LPARAM
dwParam2
)
{
FIXME
(
"(%u, %04X, %08X, %08lX, %08lX):jack support not compiled into wine
\n
"
,
wDevID
,
wMsg
,
dwUser
,
dwParam1
,
dwParam2
);
return
MMSYSERR_NOTENABLED
;
TRACE
(
"(%08lX, %p, %s (%08X), %08lX, %08lX)
\n
"
,
dwDevID
,
hDriv
,
wMsg
==
DRV_LOAD
?
"DRV_LOAD"
:
wMsg
==
DRV_FREE
?
"DRV_FREE"
:
wMsg
==
DRV_OPEN
?
"DRV_OPEN"
:
wMsg
==
DRV_CLOSE
?
"DRV_CLOSE"
:
wMsg
==
DRV_ENABLE
?
"DRV_ENABLE"
:
wMsg
==
DRV_DISABLE
?
"DRV_DISABLE"
:
wMsg
==
DRV_QUERYCONFIGURE
?
"DRV_QUERYCONFIGURE"
:
wMsg
==
DRV_CONFIGURE
?
"DRV_CONFIGURE"
:
wMsg
==
DRV_INSTALL
?
"DRV_INSTALL"
:
wMsg
==
DRV_REMOVE
?
"DRV_REMOVE"
:
"UNKNOWN"
,
wMsg
,
dwParam1
,
dwParam2
);
switch
(
wMsg
)
{
case
DRV_LOAD
:
jackhandle
=
wine_dlopen
(
SONAME_LIBJACK
,
RTLD_NOW
,
NULL
,
0
);
if
(
!
jackhandle
)
{
FIXME
(
"error loading the jack library %s, please install this library to use jack
\n
"
,
SONAME_LIBJACK
);
return
0
;
}
return
1
;
case
DRV_FREE
:
if
(
jackhandle
)
{
TRACE
(
"calling wine_dlclose() on jackhandle
\n
"
);
wine_dlclose
(
jackhandle
,
NULL
,
0
);
jackhandle
=
NULL
;
}
return
1
;
case
DRV_OPEN
:
case
DRV_CLOSE
:
case
DRV_INSTALL
:
case
DRV_REMOVE
:
case
DRV_ENABLE
:
case
DRV_DISABLE
:
case
DRV_QUERYCONFIGURE
:
return
1
;
case
DRV_CONFIGURE
:
MessageBoxA
(
0
,
"jack audio driver!"
,
"jack driver"
,
MB_OK
);
return
1
;
default:
return
0
;
}
}
#endif
/* SONAME_LIBJACK */
dlls/winejack.drv/jack.c
deleted
100644 → 0
View file @
4c719464
/* -*- tab-width: 8; c-basic-offset: 4 -*- */
/*
* Wine Driver for jack Sound Server
* http://jackit.sourceforge.net
*
* Copyright 2002 Chris Morgan
*
* 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 "wine/port.h"
#include <stdarg.h>
#include <stdio.h>
#include "windef.h"
#include "winbase.h"
#include "wingdi.h"
#include "winuser.h"
#include "mmddk.h"
#include "jack.h"
#include "wine/library.h"
#include "wine/debug.h"
WINE_DEFAULT_DEBUG_CHANNEL
(
jack
);
#ifdef SONAME_LIBJACK
void
*
jackhandle
=
NULL
;
/**************************************************************************
* JACK_drvLoad [internal]
*/
static
LRESULT
JACK_drvLoad
(
void
)
{
TRACE
(
"()
\n
"
);
/* dynamically load the jack library if not already loaded */
jackhandle
=
wine_dlopen
(
SONAME_LIBJACK
,
RTLD_NOW
,
NULL
,
0
);
TRACE
(
"SONAME_LIBJACK == %s
\n
"
,
SONAME_LIBJACK
);
TRACE
(
"jackhandle == %p
\n
"
,
jackhandle
);
if
(
!
jackhandle
)
{
FIXME
(
"error loading the jack library %s, please install this library to use jack
\n
"
,
SONAME_LIBJACK
);
return
0
;
}
return
1
;
}
/**************************************************************************
* JACK_drvFree [internal]
*/
/* unload the jack library on driver free */
static
LRESULT
JACK_drvFree
(
void
)
{
TRACE
(
"()
\n
"
);
if
(
jackhandle
)
{
TRACE
(
"calling wine_dlclose() on jackhandle
\n
"
);
wine_dlclose
(
jackhandle
,
NULL
,
0
);
jackhandle
=
NULL
;
}
return
1
;
}
#endif
/* #ifdef SONAME_LIBJACK */
/**************************************************************************
* DriverProc (WINEJACK.1)
*/
LRESULT
CALLBACK
JACK_DriverProc
(
DWORD_PTR
dwDevID
,
HDRVR
hDriv
,
UINT
wMsg
,
LPARAM
dwParam1
,
LPARAM
dwParam2
)
{
TRACE
(
"(%08lX, %p, %s (%08X), %08lX, %08lX)
\n
"
,
dwDevID
,
hDriv
,
wMsg
==
DRV_LOAD
?
"DRV_LOAD"
:
wMsg
==
DRV_FREE
?
"DRV_FREE"
:
wMsg
==
DRV_OPEN
?
"DRV_OPEN"
:
wMsg
==
DRV_CLOSE
?
"DRV_CLOSE"
:
wMsg
==
DRV_ENABLE
?
"DRV_ENABLE"
:
wMsg
==
DRV_DISABLE
?
"DRV_DISABLE"
:
wMsg
==
DRV_QUERYCONFIGURE
?
"DRV_QUERYCONFIGURE"
:
wMsg
==
DRV_CONFIGURE
?
"DRV_CONFIGURE"
:
wMsg
==
DRV_INSTALL
?
"DRV_INSTALL"
:
wMsg
==
DRV_REMOVE
?
"DRV_REMOVE"
:
"UNKNOWN"
,
wMsg
,
dwParam1
,
dwParam2
);
switch
(
wMsg
)
{
#ifdef SONAME_LIBJACK
case
DRV_LOAD
:
return
JACK_drvLoad
();
case
DRV_FREE
:
return
JACK_drvFree
();
case
DRV_OPEN
:
case
DRV_CLOSE
:
case
DRV_INSTALL
:
case
DRV_REMOVE
:
case
DRV_ENABLE
:
case
DRV_DISABLE
:
case
DRV_QUERYCONFIGURE
:
return
1
;
case
DRV_CONFIGURE
:
MessageBoxA
(
0
,
"jack audio driver!"
,
"jack driver"
,
MB_OK
);
return
1
;
#endif
default:
return
0
;
}
}
dlls/winejack.drv/jack.h
deleted
100644 → 0
View file @
4c719464
/* Definition for jack driver : wine multimedia system
*
* Copyright 2002 Chris Morgan
*
* 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_JACK_H
#define __WINE_JACK_H
extern
void
*
jackhandle
;
/* pointer to the libjack library */
#endif
/* __WINE_JACK_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