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
7fb0861b
Commit
7fb0861b
authored
May 13, 2007
by
Emmanuel Maillard
Committed by
Alexandre Julliard
May 14, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
winecoreaudio: Implement MIX_GetDevCaps.
parent
db6318ea
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
18 additions
and
0 deletions
+18
-0
mixer.c
dlls/winecoreaudio.drv/mixer.c
+18
-0
No files found.
dlls/winecoreaudio.drv/mixer.c
View file @
7fb0861b
...
@@ -478,6 +478,23 @@ static DWORD MIX_GetNumDevs(void)
...
@@ -478,6 +478,23 @@ static DWORD MIX_GetNumDevs(void)
return
numMixers
;
return
numMixers
;
}
}
static
DWORD
MIX_GetDevCaps
(
WORD
wDevID
,
LPMIXERCAPSW
lpCaps
,
DWORD_PTR
dwSize
)
{
TRACE
(
"wDevID=%d lpCaps=%p
\n
"
,
wDevID
,
lpCaps
);
if
(
lpCaps
==
NULL
)
{
WARN
(
"Invalid Parameter
\n
"
);
return
MMSYSERR_INVALPARAM
;
}
if
(
wDevID
>=
numMixers
)
{
WARN
(
"bad device ID : %d
\n
"
,
wDevID
);
return
MMSYSERR_BADDEVICEID
;
}
memcpy
(
lpCaps
,
&
mixer
.
caps
,
min
(
dwSize
,
sizeof
(
*
lpCaps
)));
return
MMSYSERR_NOERROR
;
}
/**************************************************************************
/**************************************************************************
* mxdMessage
* mxdMessage
*/
*/
...
@@ -502,6 +519,7 @@ DWORD WINAPI CoreAudio_mxdMessage(UINT wDevID, UINT wMsg, DWORD_PTR dwUser,
...
@@ -502,6 +519,7 @@ DWORD WINAPI CoreAudio_mxdMessage(UINT wDevID, UINT wMsg, DWORD_PTR dwUser,
case
MXDM_GETNUMDEVS
:
case
MXDM_GETNUMDEVS
:
return
MIX_GetNumDevs
();
return
MIX_GetNumDevs
();
case
MXDM_GETDEVCAPS
:
case
MXDM_GETDEVCAPS
:
return
MIX_GetDevCaps
(
wDevID
,
(
LPMIXERCAPSW
)
dwParam1
,
dwParam2
);
case
MXDM_GETLINEINFO
:
case
MXDM_GETLINEINFO
:
case
MXDM_GETLINECONTROLS
:
case
MXDM_GETLINECONTROLS
:
case
MXDM_GETCONTROLDETAILS
:
case
MXDM_GETCONTROLDETAILS
:
...
...
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