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
ce4fdfdb
Commit
ce4fdfdb
authored
Dec 06, 2005
by
Robert Reif
Committed by
Alexandre Julliard
Dec 06, 2005
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
winmm: Allow sound card drivers to be opened more than once.
parent
1f9fd44c
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
6 additions
and
69 deletions
+6
-69
alsa.c
dlls/winmm/winealsa/alsa.c
+1
-12
arts.c
dlls/winmm/winearts/arts.c
+1
-11
audioio.c
dlls/winmm/wineaudioio/audioio.c
+1
-12
esound.c
dlls/winmm/wineesd/esound.c
+1
-11
nas.c
dlls/winmm/winenas/nas.c
+1
-11
oss.c
dlls/winmm/wineoss/oss.c
+1
-12
No files found.
dlls/winmm/winealsa/alsa.c
View file @
ce4fdfdb
...
...
@@ -32,18 +32,11 @@
#ifdef HAVE_ALSA
static
struct
WINE_ALSA
*
alsa
=
NULL
;
/**************************************************************************
* ALSA_drvOpen [internal]
*/
static
LRESULT
ALSA_drvOpen
(
LPSTR
str
)
{
if
(
alsa
)
return
0
;
/* I know, this is ugly, but who cares... */
alsa
=
(
struct
WINE_ALSA
*
)
1
;
return
1
;
}
...
...
@@ -52,11 +45,7 @@ static LRESULT ALSA_drvOpen(LPSTR str)
*/
static
LRESULT
ALSA_drvClose
(
DWORD_PTR
dwDevID
)
{
if
(
alsa
)
{
alsa
=
NULL
;
return
1
;
}
return
0
;
return
1
;
}
#endif
...
...
dlls/winmm/winearts/arts.c
View file @
ce4fdfdb
...
...
@@ -33,18 +33,12 @@
#include "arts.h"
#ifdef HAVE_ARTS
static
int
arts
=
0
;
/**************************************************************************
* ARTS_drvOpen [internal]
*/
static
LRESULT
ARTS_drvOpen
(
LPSTR
str
)
{
if
(
arts
)
return
0
;
/* I know, this is ugly, but who cares... */
arts
=
1
;
return
1
;
}
...
...
@@ -53,11 +47,7 @@ static LRESULT ARTS_drvOpen(LPSTR str)
*/
static
LRESULT
ARTS_drvClose
(
DWORD_PTR
dwDevID
)
{
if
(
arts
)
{
arts
=
0
;
return
1
;
}
return
0
;
return
1
;
}
#endif
/* #ifdef HAVE_ARTS */
...
...
dlls/winmm/wineaudioio/audioio.c
View file @
ce4fdfdb
...
...
@@ -32,8 +32,6 @@
#ifdef HAVE_LIBAUDIOIO
static
struct
WINE_LIBAUDIOIO
*
audioio
=
NULL
;
extern
LONG
LIBAUDIOIO_WaveInit
(
void
);
/**************************************************************************
...
...
@@ -41,11 +39,6 @@ extern LONG LIBAUDIOIO_WaveInit(void);
*/
static
LRESULT
LIBAUDIOIO_drvOpen
(
LPSTR
str
)
{
if
(
audioio
)
return
0
;
/* I know, this is ugly, but who cares... */
audioio
=
(
struct
WINE_LIBAUDIOIO
*
)
1
;
return
1
;
}
...
...
@@ -54,11 +47,7 @@ static LRESULT LIBAUDIOIO_drvOpen(LPSTR str)
*/
static
LRESULT
LIBAUDIOIO_drvClose
(
DWORD_PTR
dwDevID
)
{
if
(
audioio
)
{
audioio
=
NULL
;
return
1
;
}
return
0
;
return
1
;
}
#endif
...
...
dlls/winmm/wineesd/esound.c
View file @
ce4fdfdb
...
...
@@ -34,18 +34,12 @@
#include "esound.h"
#ifdef HAVE_ESD
static
int
esd
=
0
;
/**************************************************************************
* ESD_drvOpen [internal]
*/
static
LRESULT
ESD_drvOpen
(
LPSTR
str
)
{
if
(
esd
)
return
0
;
/* I know, this is ugly, but who cares... */
esd
=
1
;
return
1
;
}
...
...
@@ -54,11 +48,7 @@ static LRESULT ESD_drvOpen(LPSTR str)
*/
static
LRESULT
ESD_drvClose
(
DWORD_PTR
dwDevID
)
{
if
(
esd
)
{
esd
=
0
;
return
1
;
}
return
0
;
return
1
;
}
#endif
/* #ifdef HAVE_ESD */
...
...
dlls/winmm/winenas/nas.c
View file @
ce4fdfdb
...
...
@@ -36,18 +36,12 @@
#include "nas.h"
#ifdef HAVE_NAS
static
int
nas
=
0
;
/**************************************************************************
* NAS_drvOpen [internal]
*/
static
LRESULT
NAS_drvOpen
(
LPSTR
str
)
{
if
(
nas
)
return
0
;
/* I know, this is ugly, but who cares... */
nas
=
1
;
return
1
;
}
...
...
@@ -56,11 +50,7 @@ static LRESULT NAS_drvOpen(LPSTR str)
*/
static
LRESULT
NAS_drvClose
(
DWORD_PTR
dwDevID
)
{
if
(
nas
)
{
nas
=
0
;
return
1
;
}
return
0
;
return
1
;
}
#endif
/* #ifdef HAVE_NAS */
...
...
dlls/winmm/wineoss/oss.c
View file @
ce4fdfdb
...
...
@@ -32,18 +32,11 @@
#ifdef HAVE_OSS
static
struct
WINE_OSS
*
oss
=
NULL
;
/**************************************************************************
* OSS_drvOpen [internal]
*/
static
LRESULT
OSS_drvOpen
(
LPSTR
str
)
{
if
(
oss
)
return
0
;
/* I know, this is ugly, but who cares... */
oss
=
(
struct
WINE_OSS
*
)
1
;
return
1
;
}
...
...
@@ -52,11 +45,7 @@ static LRESULT OSS_drvOpen(LPSTR str)
*/
static
LRESULT
OSS_drvClose
(
DWORD_PTR
dwDevID
)
{
if
(
oss
)
{
oss
=
NULL
;
return
1
;
}
return
0
;
return
1
;
}
#endif
...
...
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