Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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-cw
Commits
aa8559e8
Commit
aa8559e8
authored
Apr 29, 2003
by
Robert Reif
Committed by
Alexandre Julliard
Apr 29, 2003
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed a problem where OSS trigger support is inconsistent.
parent
e3d681ba
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
0 deletions
+14
-0
audio.c
dlls/winmm/wineoss/audio.c
+14
-0
No files found.
dlls/winmm/wineoss/audio.c
View file @
aa8559e8
...
...
@@ -3383,6 +3383,20 @@ static HRESULT WINAPI IDsCaptureDriverBufferImpl_Start(PIDSCDRIVERBUFFER iface,
WInDev
[
This
->
drv
->
wDevID
].
ossdev
->
bInputEnabled
=
TRUE
;
enable
=
getEnables
(
WInDev
[
This
->
drv
->
wDevID
].
ossdev
);
if
(
ioctl
(
WInDev
[
This
->
drv
->
wDevID
].
ossdev
->
fd
,
SNDCTL_DSP_SETTRIGGER
,
&
enable
)
<
0
)
{
if
(
errno
==
EINVAL
)
{
/* Don't give up yet. OSS trigger support is inconsistent. */
if
(
WInDev
[
This
->
drv
->
wDevID
].
ossdev
->
open_count
==
1
)
{
/* try the opposite output enable */
if
(
WInDev
[
This
->
drv
->
wDevID
].
ossdev
->
bOutputEnabled
==
FALSE
)
WInDev
[
This
->
drv
->
wDevID
].
ossdev
->
bOutputEnabled
=
TRUE
;
else
WInDev
[
This
->
drv
->
wDevID
].
ossdev
->
bOutputEnabled
=
FALSE
;
/* try it again */
enable
=
getEnables
(
WInDev
[
This
->
drv
->
wDevID
].
ossdev
);
if
(
ioctl
(
WInDev
[
This
->
drv
->
wDevID
].
ossdev
->
fd
,
SNDCTL_DSP_SETTRIGGER
,
&
enable
)
>=
0
)
return
DS_OK
;
}
}
ERR
(
"ioctl(%s, SNDCTL_DSP_SETTRIGGER) failed (%s)
\n
"
,
WInDev
[
This
->
drv
->
wDevID
].
ossdev
->
dev_name
,
strerror
(
errno
));
WInDev
[
This
->
drv
->
wDevID
].
ossdev
->
bInputEnabled
=
FALSE
;
return
DSERR_GENERIC
;
...
...
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