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
297280a2
Commit
297280a2
authored
Jul 01, 2012
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
aout_MuteSet: fix name and remove unused parameter
parent
9b965746
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
9 additions
and
10 deletions
+9
-10
include/vlc_aout_intf.h
include/vlc_aout_intf.h
+2
-1
lib/audio.c
lib/audio.c
+1
-1
modules/gui/qt4/components/controller_widget.cpp
modules/gui/qt4/components/controller_widget.cpp
+1
-1
src/audio_output/intf.c
src/audio_output/intf.c
+4
-6
src/libvlccore.sym
src/libvlccore.sym
+1
-1
No files found.
include/vlc_aout_intf.h
View file @
297280a2
...
...
@@ -38,7 +38,8 @@ VLC_API int aout_VolumeUp( vlc_object_t *, int, audio_volume_t * );
#define aout_VolumeDown(a, b, c) aout_VolumeUp(a, -(b), c)
VLC_API
int
aout_MuteToggle
(
vlc_object_t
*
);
#define aout_MuteToggle(a) aout_MuteToggle(VLC_OBJECT(a))
VLC_API
int
aout_SetMute
(
vlc_object_t
*
,
audio_volume_t
*
,
bool
);
VLC_API
int
aout_MuteSet
(
vlc_object_t
*
,
bool
);
#define aout_MuteSet(a, b) aout_MuteSet(VLC_OBJECT(a), b)
VLC_API
bool
aout_IsMuted
(
vlc_object_t
*
);
VLC_API
void
aout_EnableFilter
(
vlc_object_t
*
,
const
char
*
,
bool
);
...
...
lib/audio.c
View file @
297280a2
...
...
@@ -323,7 +323,7 @@ int libvlc_audio_get_mute( libvlc_media_player_t *mp )
void
libvlc_audio_set_mute
(
libvlc_media_player_t
*
mp
,
int
mute
)
{
aout_
SetMute
(
VLC_OBJECT
(
mp
),
NULL
,
!!
mute
);
aout_
MuteSet
(
VLC_OBJECT
(
mp
),
mute
!=
0
);
}
/*****************************************************************************
...
...
modules/gui/qt4/components/controller_widget.cpp
View file @
297280a2
...
...
@@ -204,7 +204,7 @@ void SoundWidget::setMuted( bool mute )
{
b_is_muted
=
mute
;
playlist_t
*
p_playlist
=
pl_Get
(
p_intf
);
aout_
SetMute
(
VLC_OBJECT
(
p_playlist
),
NULL
,
mute
);
aout_
MuteSet
(
VLC_OBJECT
(
p_playlist
)
,
mute
);
}
bool
SoundWidget
::
eventFilter
(
QObject
*
obj
,
QEvent
*
e
)
...
...
src/audio_output/intf.c
View file @
297280a2
...
...
@@ -187,6 +187,7 @@ int aout_VolumeUp (vlc_object_t *obj, int value, audio_volume_t *volp)
int
aout_MuteToggle
(
vlc_object_t
*
obj
)
{
audio_output_t
*
aout
;
float
vol
;
bool
mute
;
prepareVolume
(
obj
,
&
aout
,
&
vol
,
&
mute
);
...
...
@@ -207,20 +208,17 @@ bool aout_IsMuted (vlc_object_t *obj)
return
mute
;
}
#undef aout_MuteSet
/**
* Sets mute status.
*/
int
aout_
SetMute
(
vlc_object_t
*
obj
,
audio_volume_t
*
volp
,
bool
mute
)
int
aout_
MuteSet
(
vlc_object_t
*
obj
,
bool
mute
)
{
audio_output_t
*
aout
;
int
ret
;
float
vol
;
prepareVolume
(
obj
,
&
aout
,
&
vol
,
NULL
);
ret
=
commitVolume
(
obj
,
aout
,
vol
,
mute
);
if
(
volp
!=
NULL
)
*
volp
=
mute
?
0
:
lroundf
(
vol
*
AOUT_VOLUME_DEFAULT
);
return
ret
;
return
commitVolume
(
obj
,
aout
,
vol
,
mute
);
}
...
...
src/libvlccore.sym
View file @
297280a2
...
...
@@ -18,8 +18,8 @@ aout_VolumeGet
aout_VolumeSet
aout_VolumeUp
aout_MuteToggle
aout_MuteSet
aout_IsMuted
aout_SetMute
aout_VolumeSoftInit
aout_VolumeHardInit
block_Alloc
...
...
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