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
db6318ea
Commit
db6318ea
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_Open and MIX_GetNumDevs.
parent
e64485d5
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
30 additions
and
0 deletions
+30
-0
mixer.c
dlls/winecoreaudio.drv/mixer.c
+30
-0
No files found.
dlls/winecoreaudio.drv/mixer.c
View file @
db6318ea
...
...
@@ -452,6 +452,33 @@ void CoreAudio_MixerRelease(void)
}
/**************************************************************************
* MIX_Open [internal]
*/
static
DWORD
MIX_Open
(
WORD
wDevID
,
LPMIXEROPENDESC
lpMod
,
DWORD_PTR
flags
)
{
TRACE
(
"wDevID=%d lpMod=%p dwSize=%08lx
\n
"
,
wDevID
,
lpMod
,
flags
);
if
(
lpMod
==
NULL
)
{
WARN
(
"invalid parameter: lpMod == NULL
\n
"
);
return
MMSYSERR_INVALPARAM
;
}
if
(
wDevID
>=
numMixers
)
{
WARN
(
"bad device ID: %04X
\n
"
,
wDevID
);
return
MMSYSERR_BADDEVICEID
;
}
return
MMSYSERR_NOERROR
;
}
/**************************************************************************
* MIX_GetNumDevs [internal]
*/
static
DWORD
MIX_GetNumDevs
(
void
)
{
TRACE
(
"()
\n
"
);
return
numMixers
;
}
/**************************************************************************
* mxdMessage
*/
DWORD
WINAPI
CoreAudio_mxdMessage
(
UINT
wDevID
,
UINT
wMsg
,
DWORD_PTR
dwUser
,
...
...
@@ -469,8 +496,11 @@ DWORD WINAPI CoreAudio_mxdMessage(UINT wDevID, UINT wMsg, DWORD_PTR dwUser,
/* FIXME: Pretend this is supported */
return
0
;
case
MXDM_OPEN
:
return
MIX_Open
(
wDevID
,
(
LPMIXEROPENDESC
)
dwParam1
,
dwParam2
);
case
MXDM_CLOSE
:
return
MMSYSERR_NOERROR
;
case
MXDM_GETNUMDEVS
:
return
MIX_GetNumDevs
();
case
MXDM_GETDEVCAPS
:
case
MXDM_GETLINEINFO
:
case
MXDM_GETLINECONTROLS
:
...
...
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