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
81055423
Commit
81055423
authored
Feb 07, 2014
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mmdevice: scale volume as other Windows plugins
parent
7087f3bf
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
2 deletions
+4
-2
modules/audio_output/Makefile.am
modules/audio_output/Makefile.am
+1
-1
modules/audio_output/mmdevice.c
modules/audio_output/mmdevice.c
+3
-1
No files found.
modules/audio_output/Makefile.am
View file @
81055423
...
...
@@ -58,7 +58,7 @@ aout_LTLIBRARIES += libjack_plugin.la
endif
libmmdevice_plugin_la_SOURCES
=
audio_output/mmdevice.c audio_output/mmdevice.h
libmmdevice_plugin_la_LIBADD
=
-lole32
libmmdevice_plugin_la_LIBADD
=
-lole32
$(LIBM)
libwasapi_plugin_la_SOURCES
=
audio_output/wasapi.c
libwasapi_plugin_la_LIBADD
=
-lole32
-lksuser
if
HAVE_WASAPI
...
...
modules/audio_output/mmdevice.c
View file @
81055423
...
...
@@ -29,6 +29,7 @@
#define CONST_VTABLE
#include <stdlib.h>
#include <math.h>
#include <assert.h>
#include <audiopolicy.h>
#include <mmdeviceapi.h>
...
...
@@ -181,6 +182,7 @@ static int VolumeSet(audio_output_t *aout, float vol)
{
aout_sys_t
*
sys
=
aout
->
sys
;
vol
=
vol
*
vol
*
vol
;
/* ISimpleAudioVolume is tapered linearly. */
EnterCriticalSection
(
&
sys
->
lock
);
sys
->
volume
=
vol
;
WakeConditionVariable
(
&
sys
->
work
);
...
...
@@ -271,7 +273,7 @@ vlc_AudioSessionEvents_OnSimpleVolumeChanged(IAudioSessionEvents *this,
msg_Dbg
(
aout
,
"simple volume changed: %f, muting %sabled"
,
vol
,
mute
?
"en"
:
"dis"
);
aout_VolumeReport
(
aout
,
vol
);
aout_VolumeReport
(
aout
,
cbrtf
(
vol
)
);
aout_MuteReport
(
aout
,
mute
==
TRUE
);
(
void
)
ctx
;
return
S_OK
;
...
...
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