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
617117ce
Commit
617117ce
authored
Jun 15, 2023
by
Davide Beatrici
Committed by
Alexandre Julliard
Jun 16, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wineoss: Call mmdevapi's get_application_name.
parent
bb2e093a
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
1 deletion
+7
-1
mmdevdrv.c
dlls/wineoss.drv/mmdevdrv.c
+7
-1
No files found.
dlls/wineoss.drv/mmdevdrv.c
View file @
617117ce
...
@@ -87,6 +87,8 @@ extern HRESULT main_loop_start(void) DECLSPEC_HIDDEN;
...
@@ -87,6 +87,8 @@ extern HRESULT main_loop_start(void) DECLSPEC_HIDDEN;
extern
struct
audio_session_wrapper
*
session_wrapper_create
(
extern
struct
audio_session_wrapper
*
session_wrapper_create
(
struct
audio_client
*
client
)
DECLSPEC_HIDDEN
;
struct
audio_client
*
client
)
DECLSPEC_HIDDEN
;
extern
WCHAR
*
get_application_name
(
void
);
void
DECLSPEC_HIDDEN
sessions_lock
(
void
)
void
DECLSPEC_HIDDEN
sessions_lock
(
void
)
{
{
EnterCriticalSection
(
&
g_sessions_lock
);
EnterCriticalSection
(
&
g_sessions_lock
);
...
@@ -544,6 +546,7 @@ static HRESULT WINAPI AudioClient_Initialize(IAudioClient3 *iface,
...
@@ -544,6 +546,7 @@ static HRESULT WINAPI AudioClient_Initialize(IAudioClient3 *iface,
struct
create_stream_params
params
;
struct
create_stream_params
params
;
stream_handle
stream
;
stream_handle
stream
;
unsigned
int
i
;
unsigned
int
i
;
WCHAR
*
name
;
TRACE
(
"(%p)->(%x, %lx, %s, %s, %p, %s)
\n
"
,
This
,
mode
,
flags
,
TRACE
(
"(%p)->(%x, %lx, %s, %s, %p, %s)
\n
"
,
This
,
mode
,
flags
,
wine_dbgstr_longlong
(
duration
),
wine_dbgstr_longlong
(
period
),
fmt
,
debugstr_guid
(
sessionguid
));
wine_dbgstr_longlong
(
duration
),
wine_dbgstr_longlong
(
period
),
fmt
,
debugstr_guid
(
sessionguid
));
...
@@ -582,7 +585,7 @@ static HRESULT WINAPI AudioClient_Initialize(IAudioClient3 *iface,
...
@@ -582,7 +585,7 @@ static HRESULT WINAPI AudioClient_Initialize(IAudioClient3 *iface,
return
params
.
result
;
return
params
.
result
;
}
}
params
.
name
=
NULL
;
params
.
name
=
name
=
get_application_name
()
;
params
.
device
=
This
->
device_name
;
params
.
device
=
This
->
device_name
;
params
.
flow
=
This
->
dataflow
;
params
.
flow
=
This
->
dataflow
;
params
.
share
=
mode
;
params
.
share
=
mode
;
...
@@ -594,6 +597,9 @@ static HRESULT WINAPI AudioClient_Initialize(IAudioClient3 *iface,
...
@@ -594,6 +597,9 @@ static HRESULT WINAPI AudioClient_Initialize(IAudioClient3 *iface,
params
.
stream
=
&
stream
;
params
.
stream
=
&
stream
;
OSS_CALL
(
create_stream
,
&
params
);
OSS_CALL
(
create_stream
,
&
params
);
free
(
name
);
if
(
FAILED
(
params
.
result
)){
if
(
FAILED
(
params
.
result
)){
sessions_unlock
();
sessions_unlock
();
return
params
.
result
;
return
params
.
result
;
...
...
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