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
5c489283
Commit
5c489283
authored
Dec 28, 2006
by
Ken Thomases
Committed by
Alexandre Julliard
Dec 29, 2006
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
winecoreaudio: Implement widDevInterfaceSize and widDevInterface.
parent
503f9be1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
4 deletions
+13
-4
audio.c
dlls/winmm/winecoreaudio/audio.c
+13
-4
No files found.
dlls/winmm/winecoreaudio/audio.c
View file @
5c489283
...
...
@@ -168,6 +168,7 @@ typedef struct {
/* Capabilities description */
WAVEINCAPSW
caps
;
char
interface_name
[
32
];
/* Record the arguments used when opening the device. */
WAVEOPENDESC
waveDesc
;
...
...
@@ -543,6 +544,7 @@ LONG CoreAudio_WaveInit(void)
snprintf
(
szPname
,
sizeof
(
szPname
),
"CoreAudio WaveIn %d"
,
i
);
MultiByteToWideChar
(
CP_ACP
,
0
,
szPname
,
-
1
,
WInDev
[
i
].
caps
.
szPname
,
sizeof
(
WInDev
[
i
].
caps
.
szPname
)
/
sizeof
(
WCHAR
));
snprintf
(
WInDev
[
i
].
interface_name
,
sizeof
(
WInDev
[
i
].
interface_name
),
"winecoreaudio in: %d"
,
i
);
WInDev
[
i
].
caps
.
dwFormats
|=
WAVE_FORMAT_4M08
;
WInDev
[
i
].
caps
.
dwFormats
|=
WAVE_FORMAT_4S08
;
...
...
@@ -1815,8 +1817,9 @@ static DWORD widDevInterfaceSize(UINT wDevID, LPDWORD dwParam1)
{
TRACE
(
"(%u, %p)
\n
"
,
wDevID
,
dwParam1
);
FIXME
(
"unimplemented
\n
"
);
return
MMSYSERR_NOTENABLED
;
*
dwParam1
=
MultiByteToWideChar
(
CP_ACP
,
0
,
WInDev
[
wDevID
].
interface_name
,
-
1
,
NULL
,
0
)
*
sizeof
(
WCHAR
);
return
MMSYSERR_NOERROR
;
}
...
...
@@ -1825,8 +1828,14 @@ static DWORD widDevInterfaceSize(UINT wDevID, LPDWORD dwParam1)
*/
static
DWORD
widDevInterface
(
UINT
wDevID
,
PWCHAR
dwParam1
,
DWORD
dwParam2
)
{
FIXME
(
"unimplemented
\n
"
);
return
MMSYSERR_NOTENABLED
;
if
(
dwParam2
>=
MultiByteToWideChar
(
CP_ACP
,
0
,
WInDev
[
wDevID
].
interface_name
,
-
1
,
NULL
,
0
)
*
sizeof
(
WCHAR
))
{
MultiByteToWideChar
(
CP_ACP
,
0
,
WInDev
[
wDevID
].
interface_name
,
-
1
,
dwParam1
,
dwParam2
/
sizeof
(
WCHAR
));
return
MMSYSERR_NOERROR
;
}
return
MMSYSERR_INVALPARAM
;
}
...
...
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