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
79916df9
Commit
79916df9
authored
Apr 27, 2003
by
Jerry Ji
Committed by
Alexandre Julliard
Apr 27, 2003
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
The missing part of multiple device support for winearts, wineaudioio,
winejack and winenas.
parent
ecaf53f1
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
113 additions
and
8 deletions
+113
-8
Makefile.in
dlls/winmm/winearts/Makefile.in
+1
-1
audio.c
dlls/winmm/winearts/audio.c
+19
-1
audio.c
dlls/winmm/wineaudioio/audio.c
+53
-3
audio.c
dlls/winmm/winejack/audio.c
+20
-1
Makefile.in
dlls/winmm/winenas/Makefile.in
+1
-1
audio.c
dlls/winmm/winenas/audio.c
+19
-1
No files found.
dlls/winmm/winearts/Makefile.in
View file @
79916df9
...
@@ -5,7 +5,7 @@ VPATH = @srcdir@
...
@@ -5,7 +5,7 @@ VPATH = @srcdir@
MODULE
=
winearts.drv
MODULE
=
winearts.drv
IMPORTS
=
winmm user32 kernel32
IMPORTS
=
winmm user32 kernel32
EXTRAINCL
=
@ARTSINCL@
EXTRAINCL
=
@ARTSINCL@
EXTRALIBS
=
@ARTSLIBS@
EXTRALIBS
=
@ARTSLIBS@
$(LIBUUID)
LDDLLFLAGS
=
@LDDLLFLAGS@
LDDLLFLAGS
=
@LDDLLFLAGS@
SYMBOLFILE
=
$(MODULE)
.tmp.o
SYMBOLFILE
=
$(MODULE)
.tmp.o
...
...
dlls/winmm/winearts/audio.c
View file @
79916df9
...
@@ -154,6 +154,8 @@ typedef struct {
...
@@ -154,6 +154,8 @@ typedef struct {
static
WINE_WAVEOUT
WOutDev
[
MAX_WAVEOUTDRV
];
static
WINE_WAVEOUT
WOutDev
[
MAX_WAVEOUTDRV
];
static
DWORD
wodDsCreate
(
UINT
wDevID
,
PIDSDRIVER
*
drv
);
static
DWORD
wodDsCreate
(
UINT
wDevID
,
PIDSDRIVER
*
drv
);
static
DWORD
wodDsDesc
(
UINT
wDevID
,
PDSDRIVERDESC
desc
);
static
DWORD
wodDsGuid
(
UINT
wDevID
,
LPGUID
pGuid
);
/* These strings used only for tracing */
/* These strings used only for tracing */
static
const
char
*
wodPlayerCmdString
[]
=
{
static
const
char
*
wodPlayerCmdString
[]
=
{
...
@@ -1382,7 +1384,9 @@ DWORD WINAPI ARTS_wodMessage(UINT wDevID, UINT wMsg, DWORD dwUser,
...
@@ -1382,7 +1384,9 @@ DWORD WINAPI ARTS_wodMessage(UINT wDevID, UINT wMsg, DWORD dwUser,
case
WODM_RESTART
:
return
wodRestart
(
wDevID
);
case
WODM_RESTART
:
return
wodRestart
(
wDevID
);
case
WODM_RESET
:
return
wodReset
(
wDevID
);
case
WODM_RESET
:
return
wodReset
(
wDevID
);
case
DRV_QUERYDSOUNDIFACE
:
return
wodDsCreate
(
wDevID
,
(
PIDSDRIVER
*
)
dwParam1
);
case
DRV_QUERYDSOUNDIFACE
:
return
wodDsCreate
(
wDevID
,
(
PIDSDRIVER
*
)
dwParam1
);
case
DRV_QUERYDSOUNDDESC
:
return
wodDsDesc
(
wDevID
,
(
PDSDRIVERDESC
)
dwParam1
);
case
DRV_QUERYDSOUNDGUID
:
return
wodDsGuid
(
wDevID
,
(
LPGUID
)
dwParam1
);
default:
default:
FIXME
(
"unknown message %d!
\n
"
,
wMsg
);
FIXME
(
"unknown message %d!
\n
"
,
wMsg
);
}
}
...
@@ -1401,6 +1405,20 @@ static DWORD wodDsCreate(UINT wDevID, PIDSDRIVER* drv)
...
@@ -1401,6 +1405,20 @@ static DWORD wodDsCreate(UINT wDevID, PIDSDRIVER* drv)
return
MMSYSERR_NOTSUPPORTED
;
return
MMSYSERR_NOTSUPPORTED
;
}
}
static
DWORD
wodDsDesc
(
UINT
wDevID
,
PDSDRIVERDESC
desc
)
{
memset
(
desc
,
0
,
sizeof
(
*
desc
));
strcpy
(
desc
->
szDesc
,
"Wine aRts DirectSound Driver"
);
strcpy
(
desc
->
szDrvName
,
"winearts.drv"
);
return
MMSYSERR_NOERROR
;
}
static
DWORD
wodDsGuid
(
UINT
wDevID
,
LPGUID
pGuid
)
{
memcpy
(
pGuid
,
&
DSDEVID_DefaultPlayback
,
sizeof
(
GUID
));
return
MMSYSERR_NOERROR
;
}
#else
/* !HAVE_ARTS */
#else
/* !HAVE_ARTS */
/**************************************************************************
/**************************************************************************
...
...
dlls/winmm/wineaudioio/audio.c
View file @
79916df9
...
@@ -176,6 +176,11 @@ static WINE_WAVEOUT WOutDev [MAX_WAVEOUTDRV];
...
@@ -176,6 +176,11 @@ static WINE_WAVEOUT WOutDev [MAX_WAVEOUTDRV];
static
WINE_WAVEIN
WInDev
[
MAX_WAVEINDRV
];
static
WINE_WAVEIN
WInDev
[
MAX_WAVEINDRV
];
static
DWORD
wodDsCreate
(
UINT
wDevID
,
PIDSDRIVER
*
drv
);
static
DWORD
wodDsCreate
(
UINT
wDevID
,
PIDSDRIVER
*
drv
);
static
DWORD
widDsCreate
(
UINT
wDevID
,
PIDSCDRIVER
*
drv
);
static
DWORD
wodDsDesc
(
UINT
wDevID
,
PDSDRIVERDESC
desc
);
static
DWORD
widDsDesc
(
UINT
wDevID
,
PDSDRIVERDESC
desc
);
static
DWORD
wodDsGuid
(
UINT
wDevID
,
LPGUID
pGuid
);
static
DWORD
widDsGuid
(
UINT
wDevID
,
LPGUID
pGuid
);
/*======================================================================*
/*======================================================================*
* Low level WAVE implementation *
* Low level WAVE implementation *
...
@@ -1242,7 +1247,9 @@ DWORD WINAPI LIBAUDIOIO_wodMessage(UINT wDevID, UINT wMsg, DWORD dwUser,
...
@@ -1242,7 +1247,9 @@ DWORD WINAPI LIBAUDIOIO_wodMessage(UINT wDevID, UINT wMsg, DWORD dwUser,
case
WODM_RESTART
:
return
wodRestart
(
wDevID
);
case
WODM_RESTART
:
return
wodRestart
(
wDevID
);
case
WODM_RESET
:
return
wodReset
(
wDevID
);
case
WODM_RESET
:
return
wodReset
(
wDevID
);
case
DRV_QUERYDSOUNDIFACE
:
return
wodDsCreate
(
wDevID
,
(
PIDSDRIVER
*
)
dwParam1
);
case
DRV_QUERYDSOUNDIFACE
:
return
wodDsCreate
(
wDevID
,
(
PIDSDRIVER
*
)
dwParam1
);
case
DRV_QUERYDSOUNDDESC
:
return
wodDsDesc
(
wDevID
,
(
PDSDRIVERDESC
)
dwParam1
);
case
DRV_QUERYDSOUNDGUID
:
return
wodDsGuid
(
wDevID
,
(
LPGUID
)
dwParam1
);
default:
default:
FIXME
(
"unknown message %d!
\n
"
,
wMsg
);
FIXME
(
"unknown message %d!
\n
"
,
wMsg
);
}
}
...
@@ -1503,8 +1510,8 @@ static HRESULT WINAPI IDsDriverImpl_GetDriverDesc(PIDSDRIVER iface, PDSDRIVERDES
...
@@ -1503,8 +1510,8 @@ static HRESULT WINAPI IDsDriverImpl_GetDriverDesc(PIDSDRIVER iface, PDSDRIVERDES
TRACE
(
"(%p,%p)
\n
"
,
iface
,
pDesc
);
TRACE
(
"(%p,%p)
\n
"
,
iface
,
pDesc
);
pDesc
->
dwFlags
=
DSDDESC_DOMMSYSTEMOPEN
|
DSDDESC_DOMMSYSTEMSETFORMAT
|
pDesc
->
dwFlags
=
DSDDESC_DOMMSYSTEMOPEN
|
DSDDESC_DOMMSYSTEMSETFORMAT
|
DSDDESC_USESYSTEMMEMORY
|
DSDDESC_DONTNEEDPRIMARYLOCK
;
DSDDESC_USESYSTEMMEMORY
|
DSDDESC_DONTNEEDPRIMARYLOCK
;
strcpy
(
pDesc
->
szDesc
,
"Wine
OSS
DirectSound Driver"
);
strcpy
(
pDesc
->
szDesc
,
"Wine
AudioIO
DirectSound Driver"
);
strcpy
(
pDesc
->
szDrvName
,
"wine
oss
.drv"
);
strcpy
(
pDesc
->
szDrvName
,
"wine
audioio
.drv"
);
pDesc
->
dnDevNode
=
WOutDev
[
This
->
wDevID
].
waveDesc
.
dnDevNode
;
pDesc
->
dnDevNode
=
WOutDev
[
This
->
wDevID
].
waveDesc
.
dnDevNode
;
pDesc
->
wVxdId
=
0
;
pDesc
->
wVxdId
=
0
;
pDesc
->
wReserved
=
0
;
pDesc
->
wReserved
=
0
;
...
@@ -1676,6 +1683,20 @@ static DWORD wodDsCreate(UINT wDevID, PIDSDRIVER* drv)
...
@@ -1676,6 +1683,20 @@ static DWORD wodDsCreate(UINT wDevID, PIDSDRIVER* drv)
return
MMSYSERR_NOERROR
;
return
MMSYSERR_NOERROR
;
}
}
static
DWORD
wodDsDesc
(
UINT
wDevID
,
PDSDRIVERDESC
desc
)
{
memset
(
desc
,
0
,
sizeof
(
*
desc
));
strcpy
(
desc
->
szDesc
,
"Wine LIBAUDIOIO DirectSound Driver"
);
strcpy
(
desc
->
szDrvName
,
"wineaudioio.drv"
);
return
MMSYSERR_NOERROR
;
}
static
DWORD
wodDsGuid
(
UINT
wDevID
,
LPGUID
pGuid
)
{
memcpy
(
pGuid
,
&
DSDEVID_DefaultPlayback
,
sizeof
(
GUID
));
return
MMSYSERR_NOERROR
;
}
/*======================================================================*
/*======================================================================*
* Low level WAVE IN implementation *
* Low level WAVE IN implementation *
*======================================================================*/
*======================================================================*/
...
@@ -2259,12 +2280,41 @@ DWORD WINAPI LIBAUDIOIO_widMessage(WORD wDevID, WORD wMsg, DWORD dwUser,
...
@@ -2259,12 +2280,41 @@ DWORD WINAPI LIBAUDIOIO_widMessage(WORD wDevID, WORD wMsg, DWORD dwUser,
case
WIDM_RESET
:
return
widReset
(
wDevID
);
case
WIDM_RESET
:
return
widReset
(
wDevID
);
case
WIDM_START
:
return
widStart
(
wDevID
);
case
WIDM_START
:
return
widStart
(
wDevID
);
case
WIDM_STOP
:
return
widStop
(
wDevID
);
case
WIDM_STOP
:
return
widStop
(
wDevID
);
case
DRV_QUERYDSOUNDIFACE
:
return
widDsCreate
(
wDevID
,
(
PIDSCDRIVER
*
)
dwParam1
);
case
DRV_QUERYDSOUNDDESC
:
return
widDsDesc
(
wDevID
,
(
PDSDRIVERDESC
)
dwParam1
);
case
DRV_QUERYDSOUNDGUID
:
return
widDsGuid
(
wDevID
,
(
LPGUID
)
dwParam1
);
default:
default:
FIXME
(
"unknown message %u!
\n
"
,
wMsg
);
FIXME
(
"unknown message %u!
\n
"
,
wMsg
);
}
}
return
MMSYSERR_NOTSUPPORTED
;
return
MMSYSERR_NOTSUPPORTED
;
}
}
/*======================================================================*
* Low level DSOUND capture implementation *
*======================================================================*/
static
DWORD
widDsCreate
(
UINT
wDevID
,
PIDSDRIVER
*
drv
)
{
/* we can't perform memory mapping as we don't have a file stream
interface with arts like we do with oss */
MESSAGE
(
"This sound card's driver does not support direct access
\n
"
);
MESSAGE
(
"The (slower) DirectSound HEL mode will be used instead.
\n
"
);
return
MMSYSERR_NOTSUPPORTED
;
}
static
DWORD
widDsDesc
(
UINT
wDevID
,
PDSDRIVERDESC
desc
)
{
memset
(
desc
,
0
,
sizeof
(
*
desc
));
strcpy
(
desc
->
szDesc
,
"Wine LIBAUDIOIO DirectSound Driver"
);
strcpy
(
desc
->
szDrvName
,
"wineaudioio.drv"
);
return
MMSYSERR_NOERROR
;
}
static
DWORD
wodDsGuid
(
UINT
wDevID
,
LPGUID
pGuid
)
{
memcpy
(
pGuid
,
&
DSDEVID_DefaultCapture
,
sizeof
(
GUID
));
return
MMSYSERR_NOERROR
;
}
#else
/* HAVE_LIBAUDIOIO */
#else
/* HAVE_LIBAUDIOIO */
/**************************************************************************
/**************************************************************************
...
...
dlls/winmm/winejack/audio.c
View file @
79916df9
...
@@ -177,9 +177,12 @@ static WINE_WAVEOUT WOutDev [MAX_WAVEOUTDRV];
...
@@ -177,9 +177,12 @@ static WINE_WAVEOUT WOutDev [MAX_WAVEOUTDRV];
static
WINE_WAVEIN
WInDev
[
MAX_WAVEINDRV
];
static
WINE_WAVEIN
WInDev
[
MAX_WAVEINDRV
];
static
DWORD
wodDsCreate
(
UINT
wDevID
,
PIDSDRIVER
*
drv
);
static
DWORD
wodDsCreate
(
UINT
wDevID
,
PIDSDRIVER
*
drv
);
static
DWORD
wodDsDesc
(
UINT
wDevID
,
PDSDRIVERDESC
desc
);
static
DWORD
wodDsGuid
(
UINT
wDevID
,
LPGUID
pGuid
);
static
LPWAVEHDR
wodHelper_PlayPtrNext
(
WINE_WAVEOUT
*
wwo
);
static
LPWAVEHDR
wodHelper_PlayPtrNext
(
WINE_WAVEOUT
*
wwo
);
static
DWORD
wodHelper_NotifyCompletions
(
WINE_WAVEOUT
*
wwo
,
BOOL
force
);
static
DWORD
wodHelper_NotifyCompletions
(
WINE_WAVEOUT
*
wwo
,
BOOL
force
);
static
int
JACK_OpenDevice
(
WINE_WAVEOUT
*
wwo
);
static
int
JACK_OpenDevice
(
WINE_WAVEOUT
*
wwo
);
#if JACK_CLOSE_HACK
#if JACK_CLOSE_HACK
...
@@ -1554,6 +1557,8 @@ DWORD WINAPI JACK_wodMessage(UINT wDevID, UINT wMsg, DWORD dwUser,
...
@@ -1554,6 +1557,8 @@ DWORD WINAPI JACK_wodMessage(UINT wDevID, UINT wMsg, DWORD dwUser,
case
WODM_RESET
:
return
wodReset
(
wDevID
);
case
WODM_RESET
:
return
wodReset
(
wDevID
);
case
DRV_QUERYDSOUNDIFACE
:
return
wodDsCreate
(
wDevID
,
(
PIDSDRIVER
*
)
dwParam1
);
case
DRV_QUERYDSOUNDIFACE
:
return
wodDsCreate
(
wDevID
,
(
PIDSDRIVER
*
)
dwParam1
);
case
DRV_QUERYDSOUNDDESC
:
return
wodDsDesc
(
wDevID
,
(
PDSDRIVERDESC
)
dwParam1
);
case
DRV_QUERYDSOUNDGUID
:
return
wodDsGuid
(
wDevID
,
(
LPGUID
)
dwParam1
);
default
:
default
:
FIXME
(
"unknown message %d!
\n
"
,
wMsg
);
FIXME
(
"unknown message %d!
\n
"
,
wMsg
);
}
}
...
@@ -1596,6 +1601,20 @@ static DWORD wodDsCreate(UINT wDevID, PIDSDRIVER* drv)
...
@@ -1596,6 +1601,20 @@ static DWORD wodDsCreate(UINT wDevID, PIDSDRIVER* drv)
return
MMSYSERR_NOTSUPPORTED
;
return
MMSYSERR_NOTSUPPORTED
;
}
}
static
DWORD
wodDsDesc
(
UINT
wDevID
,
PDSDRIVERDESC
desc
)
{
memset
(
desc
,
0
,
sizeof
(
*
desc
));
strcpy
(
desc
->
szDesc
,
"Wine jack DirectSound Driver"
);
strcpy
(
desc
->
szDrvName
,
"winejack.drv"
);
return
MMSYSERR_NOERROR
;
}
static
DWORD
wodDsGuid
(
UINT
wDevID
,
LPGUID
pGuid
)
{
memcpy
(
pGuid
,
&
DSDEVID_DefaultPlayback
,
sizeof
(
GUID
));
return
MMSYSERR_NOERROR
;
}
/*======================================================================*
/*======================================================================*
* Low level WAVE IN implementation *
* Low level WAVE IN implementation *
*======================================================================*/
*======================================================================*/
...
...
dlls/winmm/winenas/Makefile.in
View file @
79916df9
...
@@ -5,7 +5,7 @@ VPATH = @srcdir@
...
@@ -5,7 +5,7 @@ VPATH = @srcdir@
MODULE
=
winenas.drv
MODULE
=
winenas.drv
IMPORTS
=
winmm user32 kernel32
IMPORTS
=
winmm user32 kernel32
EXTRAINCL
=
@X_CFLAGS@
EXTRAINCL
=
@X_CFLAGS@
EXTRALIBS
=
@NASLIBS@
EXTRALIBS
=
@NASLIBS@
$(LIBUUID)
LDDLLFLAGS
=
@LDDLLFLAGS@
LDDLLFLAGS
=
@LDDLLFLAGS@
SYMBOLFILE
=
$(MODULE)
.tmp.o
SYMBOLFILE
=
$(MODULE)
.tmp.o
...
...
dlls/winmm/winenas/audio.c
View file @
79916df9
...
@@ -185,6 +185,8 @@ typedef struct {
...
@@ -185,6 +185,8 @@ typedef struct {
static
WINE_WAVEOUT
WOutDev
[
MAX_WAVEOUTDRV
];
static
WINE_WAVEOUT
WOutDev
[
MAX_WAVEOUTDRV
];
static
DWORD
wodDsCreate
(
UINT
wDevID
,
PIDSDRIVER
*
drv
);
static
DWORD
wodDsCreate
(
UINT
wDevID
,
PIDSDRIVER
*
drv
);
static
DWORD
wodDsDesc
(
UINT
wDevID
,
PDSDRIVERDESC
desc
);
static
DWORD
wodDsGuid
(
UINT
wDevID
,
LPGUID
pGuid
);
/* NASFUNC */
/* NASFUNC */
...
@@ -1254,7 +1256,9 @@ DWORD WINAPI NAS_wodMessage(UINT wDevID, UINT wMsg, DWORD dwUser,
...
@@ -1254,7 +1256,9 @@ DWORD WINAPI NAS_wodMessage(UINT wDevID, UINT wMsg, DWORD dwUser,
case
WODM_RESTART
:
return
wodRestart
(
wDevID
);
case
WODM_RESTART
:
return
wodRestart
(
wDevID
);
case
WODM_RESET
:
return
wodReset
(
wDevID
);
case
WODM_RESET
:
return
wodReset
(
wDevID
);
case
DRV_QUERYDSOUNDIFACE
:
return
wodDsCreate
(
wDevID
,
(
PIDSDRIVER
*
)
dwParam1
);
case
DRV_QUERYDSOUNDIFACE
:
return
wodDsCreate
(
wDevID
,
(
PIDSDRIVER
*
)
dwParam1
);
case
DRV_QUERYDSOUNDDESC
:
return
wodDsDesc
(
wDevID
,
(
PDSDRIVERDESC
)
dwParam1
);
case
DRV_QUERYDSOUNDGUID
:
return
wodDsGuid
(
wDevID
,
(
LPGUID
)
dwParam1
);
default:
default:
FIXME
(
"unknown message %d!
\n
"
,
wMsg
);
FIXME
(
"unknown message %d!
\n
"
,
wMsg
);
}
}
...
@@ -1273,6 +1277,20 @@ static DWORD wodDsCreate(UINT wDevID, PIDSDRIVER* drv)
...
@@ -1273,6 +1277,20 @@ static DWORD wodDsCreate(UINT wDevID, PIDSDRIVER* drv)
return
MMSYSERR_NOTSUPPORTED
;
return
MMSYSERR_NOTSUPPORTED
;
}
}
static
DWORD
wodDsDesc
(
UINT
wDevID
,
PDSDRIVERDESC
desc
)
{
memset
(
desc
,
0
,
sizeof
(
*
desc
));
strcpy
(
desc
->
szDesc
,
"Wine NAS DirectSound Driver"
);
strcpy
(
desc
->
szDrvName
,
"winenas.drv"
);
return
MMSYSERR_NOERROR
;
}
static
DWORD
wodDsGuid
(
UINT
wDevID
,
LPGUID
pGuid
)
{
memcpy
(
pGuid
,
&
DSDEVID_DefaultPlayback
,
sizeof
(
GUID
));
return
MMSYSERR_NOERROR
;
}
static
int
nas_init
(
void
)
{
static
int
nas_init
(
void
)
{
TRACE
(
"NAS INIT
\n
"
);
TRACE
(
"NAS INIT
\n
"
);
if
(
!
(
AuServ
=
AuOpenServer
(
NULL
,
0
,
NULL
,
0
,
NULL
,
NULL
)))
if
(
!
(
AuServ
=
AuOpenServer
(
NULL
,
0
,
NULL
,
0
,
NULL
,
NULL
)))
...
...
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