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
b1b71a31
Commit
b1b71a31
authored
Sep 07, 2022
by
Davide Beatrici
Committed by
Alexandre Julliard
Sep 08, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wineoss: Adapt "create_stream_params" struct to mmdevapi's.
parent
03af71d4
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
8 additions
and
0 deletions
+8
-0
mmdevdrv.c
dlls/wineoss.drv/mmdevdrv.c
+2
-0
oss.c
dlls/wineoss.drv/oss.c
+4
-0
unixlib.h
dlls/wineoss.drv/unixlib.h
+2
-0
No files found.
dlls/wineoss.drv/mmdevdrv.c
View file @
b1b71a31
...
...
@@ -712,6 +712,7 @@ static HRESULT WINAPI AudioClient_Initialize(IAudioClient3 *iface,
return
AUDCLNT_E_ALREADY_INITIALIZED
;
}
params
.
name
=
NULL
;
params
.
device
=
This
->
devnode
;
params
.
flow
=
This
->
dataflow
;
params
.
share
=
mode
;
...
...
@@ -719,6 +720,7 @@ static HRESULT WINAPI AudioClient_Initialize(IAudioClient3 *iface,
params
.
duration
=
duration
;
params
.
period
=
period
;
params
.
fmt
=
fmt
;
params
.
channel_count
=
NULL
;
params
.
stream
=
&
stream
;
OSS_CALL
(
create_stream
,
&
params
);
...
...
dlls/wineoss.drv/oss.c
View file @
b1b71a31
...
...
@@ -1691,6 +1691,7 @@ static NTSTATUS oss_wow64_create_stream(void *args)
{
struct
{
PTR32
name
;
PTR32
device
;
EDataFlow
flow
;
AUDCLNT_SHAREMODE
share
;
...
...
@@ -1699,10 +1700,12 @@ static NTSTATUS oss_wow64_create_stream(void *args)
REFERENCE_TIME
period
;
PTR32
fmt
;
HRESULT
result
;
PTR32
channel_count
;
PTR32
stream
;
}
*
params32
=
args
;
struct
create_stream_params
params
=
{
.
name
=
ULongToPtr
(
params32
->
name
),
.
device
=
ULongToPtr
(
params32
->
device
),
.
flow
=
params32
->
flow
,
.
share
=
params32
->
share
,
...
...
@@ -1710,6 +1713,7 @@ static NTSTATUS oss_wow64_create_stream(void *args)
.
duration
=
params32
->
duration
,
.
period
=
params32
->
period
,
.
fmt
=
ULongToPtr
(
params32
->
fmt
),
.
channel_count
=
ULongToPtr
(
params32
->
channel_count
),
.
stream
=
ULongToPtr
(
params32
->
stream
)
};
oss_create_stream
(
&
params
);
...
...
dlls/wineoss.drv/unixlib.h
View file @
b1b71a31
...
...
@@ -53,6 +53,7 @@ struct get_endpoint_ids_params
struct
create_stream_params
{
const
char
*
name
;
const
char
*
device
;
EDataFlow
flow
;
AUDCLNT_SHAREMODE
share
;
...
...
@@ -61,6 +62,7 @@ struct create_stream_params
REFERENCE_TIME
period
;
const
WAVEFORMATEX
*
fmt
;
HRESULT
result
;
UINT32
*
channel_count
;
stream_handle
*
stream
;
};
...
...
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