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
d800159d
Commit
d800159d
authored
Aug 13, 2023
by
Davide Beatrici
Committed by
Alexandre Julliard
Aug 23, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
winealsa: Remove GetEndpointIDs.
parent
09a84020
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
0 additions
and
62 deletions
+0
-62
mmdevdrv.c
dlls/winealsa.drv/mmdevdrv.c
+0
-61
winealsa.drv.spec
dlls/winealsa.drv/winealsa.drv.spec
+0
-1
No files found.
dlls/winealsa.drv/mmdevdrv.c
View file @
d800159d
...
...
@@ -154,67 +154,6 @@ void WINAPI get_device_guid(EDataFlow flow, const char *device, GUID *guid)
RegCloseKey
(
key
);
}
HRESULT
WINAPI
AUDDRV_GetEndpointIDs
(
EDataFlow
flow
,
WCHAR
***
ids_out
,
GUID
**
guids_out
,
UINT
*
num
,
UINT
*
def_index
)
{
struct
get_endpoint_ids_params
params
;
unsigned
int
i
;
GUID
*
guids
=
NULL
;
WCHAR
**
ids
=
NULL
;
TRACE
(
"%d %p %p %p %p
\n
"
,
flow
,
ids
,
guids
,
num
,
def_index
);
params
.
flow
=
flow
;
params
.
size
=
1000
;
params
.
endpoints
=
NULL
;
do
{
HeapFree
(
GetProcessHeap
(),
0
,
params
.
endpoints
);
params
.
endpoints
=
HeapAlloc
(
GetProcessHeap
(),
0
,
params
.
size
);
ALSA_CALL
(
get_endpoint_ids
,
&
params
);
}
while
(
params
.
result
==
HRESULT_FROM_WIN32
(
ERROR_INSUFFICIENT_BUFFER
));
if
(
FAILED
(
params
.
result
))
goto
end
;
ids
=
HeapAlloc
(
GetProcessHeap
(),
HEAP_ZERO_MEMORY
,
params
.
num
*
sizeof
(
*
ids
));
guids
=
HeapAlloc
(
GetProcessHeap
(),
0
,
params
.
num
*
sizeof
(
*
guids
));
if
(
!
ids
||
!
guids
){
params
.
result
=
E_OUTOFMEMORY
;
goto
end
;
}
for
(
i
=
0
;
i
<
params
.
num
;
i
++
){
WCHAR
*
name
=
(
WCHAR
*
)((
char
*
)
params
.
endpoints
+
params
.
endpoints
[
i
].
name
);
char
*
device
=
(
char
*
)
params
.
endpoints
+
params
.
endpoints
[
i
].
device
;
unsigned
int
size
=
(
wcslen
(
name
)
+
1
)
*
sizeof
(
WCHAR
);
ids
[
i
]
=
HeapAlloc
(
GetProcessHeap
(),
0
,
size
);
if
(
!
ids
[
i
]){
params
.
result
=
E_OUTOFMEMORY
;
goto
end
;
}
memcpy
(
ids
[
i
],
name
,
size
);
get_device_guid
(
flow
,
device
,
guids
+
i
);
}
*
def_index
=
params
.
default_idx
;
end:
HeapFree
(
GetProcessHeap
(),
0
,
params
.
endpoints
);
if
(
FAILED
(
params
.
result
)){
HeapFree
(
GetProcessHeap
(),
0
,
guids
);
if
(
ids
){
for
(
i
=
0
;
i
<
params
.
num
;
i
++
)
HeapFree
(
GetProcessHeap
(),
0
,
ids
[
i
]);
HeapFree
(
GetProcessHeap
(),
0
,
ids
);
}
}
else
{
*
ids_out
=
ids
;
*
guids_out
=
guids
;
*
num
=
params
.
num
;
}
return
params
.
result
;
}
BOOL
WINAPI
get_device_name_from_guid
(
GUID
*
guid
,
char
**
name
,
EDataFlow
*
flow
)
{
HKEY
devices_key
;
...
...
dlls/winealsa.drv/winealsa.drv.spec
View file @
d800159d
...
...
@@ -6,4 +6,3 @@
# MMDevAPI driver functions
@ stdcall -private get_device_guid(long ptr ptr) get_device_guid
@ stdcall -private get_device_name_from_guid(ptr ptr ptr) get_device_name_from_guid
@ stdcall -private GetEndpointIDs(long ptr ptr ptr ptr) AUDDRV_GetEndpointIDs
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