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
bb1ca581
Commit
bb1ca581
authored
Feb 06, 2012
by
Andrew Eikum
Committed by
Alexandre Julliard
Feb 06, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wineoss.drv: Don't call GETOSPACE immediately after device initialization.
parent
ea7e9ed2
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
13 deletions
+1
-13
mmdevdrv.c
dlls/wineoss.drv/mmdevdrv.c
+1
-13
No files found.
dlls/wineoss.drv/mmdevdrv.c
View file @
bb1ca581
...
...
@@ -875,7 +875,6 @@ static HRESULT WINAPI AudioClient_Initialize(IAudioClient *iface,
{
ACImpl
*
This
=
impl_from_IAudioClient
(
iface
);
int
i
;
audio_buf_info
bi
;
HRESULT
hr
;
TRACE
(
"(%p)->(%x, %x, %s, %s, %p, %s)
\n
"
,
This
,
mode
,
flags
,
...
...
@@ -955,18 +954,6 @@ static HRESULT WINAPI AudioClient_Initialize(IAudioClient *iface,
return
E_OUTOFMEMORY
;
}
if
(
This
->
dataflow
==
eRender
){
if
(
ioctl
(
This
->
fd
,
SNDCTL_DSP_GETOSPACE
,
&
bi
)
<
0
){
WARN
(
"GETOSPACE failed: %d (%s)
\n
"
,
errno
,
strerror
(
errno
));
CoTaskMemFree
(
This
->
fmt
);
This
->
fmt
=
NULL
;
LeaveCriticalSection
(
&
This
->
lock
);
return
E_FAIL
;
}
This
->
oss_bufsize_bytes
=
bi
.
bytes
;
}
This
->
vols
=
HeapAlloc
(
GetProcessHeap
(),
0
,
fmt
->
nChannels
*
sizeof
(
float
));
if
(
!
This
->
vols
){
CoTaskMemFree
(
This
->
fmt
);
...
...
@@ -980,6 +967,7 @@ static HRESULT WINAPI AudioClient_Initialize(IAudioClient *iface,
This
->
share
=
mode
;
This
->
flags
=
flags
;
This
->
oss_bufsize_bytes
=
0
;
EnterCriticalSection
(
&
g_sessions_lock
);
...
...
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