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
416f0156
Commit
416f0156
authored
Apr 19, 2010
by
Maarten Lankhorst
Committed by
Alexandre Julliard
Apr 20, 2010
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mmdevapi: Set PKEY_AudioEngine_DeviceFormat for capture too.
parent
fa202c52
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
3 deletions
+5
-3
devenum.c
dlls/mmdevapi/devenum.c
+5
-3
No files found.
dlls/mmdevapi/devenum.c
View file @
416f0156
...
...
@@ -840,6 +840,7 @@ static void openal_scancapture(void)
WARN
(
"Disabling blacklist because %s is blacklisted
\n
"
,
defaultstr
);
if
(
devstr
&&
*
devstr
)
for
(;
*
devstr
;
devstr
+=
strlen
(
devstr
)
+
1
)
{
MMDevice
*
mmdev
;
ALint
freq
=
44100
;
MultiByteToWideChar
(
CP_UNIXCP
,
0
,
devstr
,
-
1
,
name
,
sizeof
(
name
)
/
sizeof
(
*
name
)
-
1
);
...
...
@@ -850,10 +851,11 @@ static void openal_scancapture(void)
}
TRACE
(
"Adding %s
\n
"
,
devstr
);
dev
=
palcCaptureOpenDevice
(
devstr
,
freq
,
AL_FORMAT_MONO16
,
65536
);
MMDevice_Create
(
NULL
,
name
,
NULL
,
eCapture
,
dev
?
DEVICE_STATE_ACTIVE
:
DEVICE_STATE_NOTPRESENT
,
!
strcmp
(
devstr
,
defaultstr
));
if
(
dev
)
MMDevice_Create
(
&
mmdev
,
name
,
NULL
,
eCapture
,
dev
?
DEVICE_STATE_ACTIVE
:
DEVICE_STATE_NOTPRESENT
,
!
strcmp
(
devstr
,
defaultstr
));
if
(
dev
)
{
openal_setformat
(
mmdev
,
freq
);
palcCaptureCloseDevice
(
dev
);
else
}
else
WARN
(
"Could not open device: %04x
\n
"
,
palcGetError
(
NULL
));
}
LeaveCriticalSection
(
&
openal_crst
);
...
...
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