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
50cdc6d7
Commit
50cdc6d7
authored
Dec 17, 2014
by
Andrew Eikum
Committed by
Alexandre Julliard
Dec 17, 2014
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wineoss.drv: Don't use SNDCTL_DSP_GETISPACE.
This shouldn't be needed as the device is opened in non-blocking mode, and it appears this function is unimplemented on PCBSD.
parent
d301254e
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
9 deletions
+0
-9
mmdevdrv.c
dlls/wineoss.drv/mmdevdrv.c
+0
-9
No files found.
dlls/wineoss.drv/mmdevdrv.c
View file @
50cdc6d7
...
@@ -1493,20 +1493,11 @@ static void oss_write_data(ACImpl *This)
...
@@ -1493,20 +1493,11 @@ static void oss_write_data(ACImpl *This)
static
void
oss_read_data
(
ACImpl
*
This
)
static
void
oss_read_data
(
ACImpl
*
This
)
{
{
UINT64
pos
,
readable
;
UINT64
pos
,
readable
;
audio_buf_info
bi
;
ssize_t
nread
;
ssize_t
nread
;
if
(
ioctl
(
This
->
fd
,
SNDCTL_DSP_GETISPACE
,
&
bi
)
<
0
){
WARN
(
"GETISPACE failed: %d (%s)
\n
"
,
errno
,
strerror
(
errno
));
return
;
}
pos
=
(
This
->
held_frames
+
This
->
lcl_offs_frames
)
%
This
->
bufsize_frames
;
pos
=
(
This
->
held_frames
+
This
->
lcl_offs_frames
)
%
This
->
bufsize_frames
;
readable
=
(
This
->
bufsize_frames
-
pos
)
*
This
->
fmt
->
nBlockAlign
;
readable
=
(
This
->
bufsize_frames
-
pos
)
*
This
->
fmt
->
nBlockAlign
;
if
(
bi
.
bytes
<
readable
)
readable
=
bi
.
bytes
;
nread
=
read
(
This
->
fd
,
This
->
local_buffer
+
pos
*
This
->
fmt
->
nBlockAlign
,
nread
=
read
(
This
->
fd
,
This
->
local_buffer
+
pos
*
This
->
fmt
->
nBlockAlign
,
readable
);
readable
);
if
(
nread
<
0
){
if
(
nread
<
0
){
...
...
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