Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
videolan
vlc
Commits
f03a6073
Commit
f03a6073
authored
Aug 11, 2012
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wasapi: provide user-friendly audio endpoint name (fixes #7201)
Also list the entries in the log like ALSA output.
parent
71786a23
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
3 deletions
+5
-3
modules/audio_output/wasapi.c
modules/audio_output/wasapi.c
+5
-3
No files found.
modules/audio_output/wasapi.c
View file @
f03a6073
...
...
@@ -30,6 +30,7 @@
#include <audioclient.h>
#include <audiopolicy.h>
#include <mmdeviceapi.h>
#include <Functiondiscoverykeys_devpkey.h>
#include <vlc_common.h>
#include <vlc_plugin.h>
...
...
@@ -283,6 +284,8 @@ static void GetDevices(vlc_object_t *obj, IMMDeviceEnumerator *it)
hr
=
IMMDeviceCollection_GetCount
(
devs
,
&
n
);
if
(
FAILED
(
hr
))
n
=
0
;
else
msg_Dbg
(
obj
,
"Available Windows Audio devices:"
);
while
(
n
>
0
)
{
IMMDevice
*
dev
;
...
...
@@ -311,16 +314,15 @@ static void GetDevices(vlc_object_t *obj, IMMDeviceEnumerator *it)
PROPVARIANT
v
;
PropVariantInit
(
&
v
);
#ifdef FIXED
hr
=
IPropertyStore_GetValue
(
props
,
PKEY_Device_FriendlyName
,
&
v
);
hr
=
IPropertyStore_GetValue
(
props
,
&
PKEY_Device_FriendlyName
,
&
v
);
if
(
SUCCEEDED
(
hr
))
text
.
psz_string
=
FromWide
(
v
.
pwszVal
);
#endif
PropVariantClear
(
&
v
);
IPropertyStore_Release
(
props
);
}
IMMDevice_Release
(
dev
);
msg_Dbg
(
obj
,
"%s (%s)"
,
val
.
psz_string
,
text
.
psz_string
);
var_Change
(
obj
,
"audio-device"
,
VLC_VAR_ADDCHOICE
,
&
val
,
&
text
);
if
(
likely
(
text
.
psz_string
!=
val
.
psz_string
))
free
(
text
.
psz_string
);
...
...
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