Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-2-2
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-2-2
Commits
db828374
Commit
db828374
authored
Dec 07, 2012
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mmdevice: initialize mute & volume (fixes #7203)
parent
cf189e0e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
18 additions
and
0 deletions
+18
-0
modules/audio_output/mmdevice.c
modules/audio_output/mmdevice.c
+18
-0
No files found.
modules/audio_output/mmdevice.c
View file @
db828374
...
...
@@ -504,6 +504,24 @@ static void MMSession(audio_output_t *aout, aout_sys_t *sys)
&
sys
->
session_events
);
}
if
(
sys
->
volume
!=
NULL
)
{
/* Get current values (_after_ changes notification registration) */
BOOL
mute
;
float
level
;
hr
=
ISimpleAudioVolume_GetMute
(
sys
->
volume
,
&
mute
);
if
(
FAILED
(
hr
))
msg_Err
(
aout
,
"cannot get mute (error 0x%lx)"
,
hr
);
else
aout_MuteReport
(
aout
,
mute
!=
FALSE
);
hr
=
ISimpleAudioVolume_GetMasterVolume
(
sys
->
volume
,
&
level
);
if
(
FAILED
(
hr
))
msg_Err
(
aout
,
"cannot get mute (error 0x%lx)"
,
hr
);
else
aout_VolumeReport
(
aout
,
level
);
}
SetEvent
(
sys
->
device_ready
);
/* Wait until device change or exit */
WaitForSingleObject
(
sys
->
device_changed
,
INFINITE
);
...
...
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