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
3429068f
Commit
3429068f
authored
Aug 08, 2007
by
Tijl Coosemans
Committed by
Alexandre Julliard
Aug 08, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wineoss: Avoid SNDCTL_DSP_GETTRIGGER.
parent
00259609
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
18 deletions
+8
-18
audio.c
dlls/wineoss.drv/audio.c
+8
-18
No files found.
dlls/wineoss.drv/audio.c
View file @
3429068f
...
...
@@ -389,18 +389,16 @@ static DWORD OSS_RawOpenDevice(OSS_DEVICE* ossdev, int strict_format)
}
ossdev
->
fd
=
fd
;
ossdev
->
bOutputEnabled
=
TRUE
;
/* OSS enables by default */
ossdev
->
bInputEnabled
=
TRUE
;
/* OSS enables by default */
if
(
ossdev
->
open_access
==
O_RDONLY
)
ossdev
->
bOutputEnabled
=
FALSE
;
if
(
ossdev
->
open_access
==
O_WRONLY
)
ossdev
->
bInputEnabled
=
FALSE
;
if
(
ossdev
->
bTriggerSupport
)
{
int
trigger
;
rc
=
ioctl
(
fd
,
SNDCTL_DSP_GETTRIGGER
,
&
trigger
);
if
(
rc
!=
0
)
{
ERR
(
"ioctl(%s, SNDCTL_DSP_GETTRIGGER) failed (%s)
\n
"
,
ossdev
->
dev_name
,
strerror
(
errno
));
goto
error
;
}
ossdev
->
bOutputEnabled
=
((
trigger
&
PCM_ENABLE_OUTPUT
)
==
PCM_ENABLE_OUTPUT
);
ossdev
->
bInputEnabled
=
((
trigger
&
PCM_ENABLE_INPUT
)
==
PCM_ENABLE_INPUT
);
trigger
=
getEnables
(
ossdev
);
/* If we do not have full duplex, but they opened RDWR
** (as you have to in order for an mmap to succeed)
** then we start out with input off
...
...
@@ -411,16 +409,8 @@ static DWORD OSS_RawOpenDevice(OSS_DEVICE* ossdev, int strict_format)
trigger
&=
~
PCM_ENABLE_INPUT
;
ioctl
(
fd
,
SNDCTL_DSP_SETTRIGGER
,
&
trigger
);
}
}
else
{
ossdev
->
bOutputEnabled
=
TRUE
;
/* OSS enables by default */
ossdev
->
bInputEnabled
=
TRUE
;
/* OSS enables by default */
}
if
(
ossdev
->
open_access
==
O_RDONLY
)
ossdev
->
bOutputEnabled
=
FALSE
;
if
(
ossdev
->
open_access
==
O_WRONLY
)
ossdev
->
bInputEnabled
=
FALSE
;
return
MMSYSERR_NOERROR
;
error:
...
...
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