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
06b6e3bd
Commit
06b6e3bd
authored
Jul 16, 2010
by
Eric Pouech
Committed by
Alexandre Julliard
Jul 19, 2010
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wineoss.drv: Be consistent for aux devices about what we actually support.
parent
537bfbf4
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
3 deletions
+5
-3
mmaux.c
dlls/wineoss.drv/mmaux.c
+5
-3
No files found.
dlls/wineoss.drv/mmaux.c
View file @
06b6e3bd
...
...
@@ -78,10 +78,11 @@ static LRESULT OSS_AuxExit(void)
static
DWORD
AUX_GetDevCaps
(
WORD
wDevID
,
LPAUXCAPSW
lpCaps
,
DWORD
dwSize
)
{
int
mixer
,
volume
;
static
const
WCHAR
ini
[]
=
{
'O'
,
'S'
,
'S'
,
' '
,
'A'
,
'u'
,
'x'
,
0
};
static
const
WCHAR
ini
[]
=
{
'O'
,
'S'
,
'S'
,
' '
,
'A'
,
'u'
,
'x'
,
' '
,
'#'
,
'0'
,
0
};
TRACE
(
"(%04X, %p, %u);
\n
"
,
wDevID
,
lpCaps
,
dwSize
);
if
(
lpCaps
==
NULL
)
return
MMSYSERR_NOTENABLED
;
if
(
wDevID
>=
NumDev
)
return
MMSYSERR_BADDEVICEID
;
if
((
mixer
=
open
(
MIXER_DEV
,
O_RDWR
))
<
0
)
{
WARN
(
"mixer device not available !
\n
"
);
return
MMSYSERR_NOTENABLED
;
...
...
@@ -93,10 +94,11 @@ static DWORD AUX_GetDevCaps(WORD wDevID, LPAUXCAPSW lpCaps, DWORD dwSize)
}
close
(
mixer
);
lpCaps
->
wMid
=
0xAA
;
lpCaps
->
wPid
=
0x55
;
lpCaps
->
wPid
=
0x55
+
wDevID
;
lpCaps
->
vDriverVersion
=
0x0100
;
strcpyW
(
lpCaps
->
szPname
,
ini
);
lpCaps
->
wTechnology
=
AUXCAPS_CDAUDIO
;
lpCaps
->
szPname
[
9
]
=
'0'
+
wDevID
;
/* 6 at max */
lpCaps
->
wTechnology
=
wDevID
==
2
?
AUXCAPS_CDAUDIO
:
AUXCAPS_AUXIN
;
lpCaps
->
dwSupport
=
AUXCAPS_VOLUME
|
AUXCAPS_LRVOLUME
;
return
MMSYSERR_NOERROR
;
...
...
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