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
0ce2c2e5
Commit
0ce2c2e5
authored
Jul 25, 2011
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
aout_VolumeDown: convert to a macro
parent
355c893f
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
5 additions
and
22 deletions
+5
-22
include/vlc_aout_intf.h
include/vlc_aout_intf.h
+1
-2
modules/control/rc.c
modules/control/rc.c
+4
-10
src/audio_output/intf.c
src/audio_output/intf.c
+0
-9
src/libvlccore.sym
src/libvlccore.sym
+0
-1
No files found.
include/vlc_aout_intf.h
View file @
0ce2c2e5
...
@@ -35,8 +35,7 @@ VLC_API int aout_VolumeSet( vlc_object_t *, audio_volume_t );
...
@@ -35,8 +35,7 @@ VLC_API int aout_VolumeSet( vlc_object_t *, audio_volume_t );
#define aout_VolumeSet(a, b) aout_VolumeSet(VLC_OBJECT(a), b)
#define aout_VolumeSet(a, b) aout_VolumeSet(VLC_OBJECT(a), b)
VLC_API
int
aout_VolumeUp
(
vlc_object_t
*
,
int
,
audio_volume_t
*
);
VLC_API
int
aout_VolumeUp
(
vlc_object_t
*
,
int
,
audio_volume_t
*
);
#define aout_VolumeUp(a, b, c) aout_VolumeUp(VLC_OBJECT(a), b, c)
#define aout_VolumeUp(a, b, c) aout_VolumeUp(VLC_OBJECT(a), b, c)
VLC_API
int
aout_VolumeDown
(
vlc_object_t
*
,
int
,
audio_volume_t
*
)
;
#define aout_VolumeDown(a, b, c) aout_VolumeUp(a, -(b), c)
#define aout_VolumeDown(a, b, c) aout_VolumeDown(VLC_OBJECT(a), b, c)
VLC_API
int
aout_ToggleMute
(
vlc_object_t
*
,
audio_volume_t
*
);
VLC_API
int
aout_ToggleMute
(
vlc_object_t
*
,
audio_volume_t
*
);
#define aout_ToggleMute(a, b) aout_ToggleMute(VLC_OBJECT(a), b)
#define aout_ToggleMute(a, b) aout_ToggleMute(VLC_OBJECT(a), b)
VLC_API
int
aout_SetMute
(
vlc_object_t
*
,
audio_volume_t
*
,
bool
);
VLC_API
int
aout_SetMute
(
vlc_object_t
*
,
audio_volume_t
*
,
bool
);
...
...
modules/control/rc.c
View file @
0ce2c2e5
...
@@ -1551,16 +1551,10 @@ static int VolumeMove( vlc_object_t *p_this, char const *psz_cmd,
...
@@ -1551,16 +1551,10 @@ static int VolumeMove( vlc_object_t *p_this, char const *psz_cmd,
i_nb_steps
=
1
;
i_nb_steps
=
1
;
}
}
if
(
!
strcmp
(
psz_cmd
,
"volup"
)
)
if
(
!
strcmp
(
psz_cmd
,
"voldown"
)
)
{
i_nb_steps
*=
-
1
;
if
(
aout_VolumeUp
(
p_intf
->
p_sys
->
p_playlist
,
i_nb_steps
,
&
i_volume
)
<
0
)
if
(
aout_VolumeUp
(
p_intf
->
p_sys
->
p_playlist
,
i_nb_steps
,
&
i_volume
)
<
0
)
i_error
=
VLC_EGENERIC
;
i_error
=
VLC_EGENERIC
;
}
else
{
if
(
aout_VolumeDown
(
p_intf
->
p_sys
->
p_playlist
,
i_nb_steps
,
&
i_volume
)
<
0
)
i_error
=
VLC_EGENERIC
;
}
osd_Volume
(
p_this
);
osd_Volume
(
p_this
);
if
(
!
i_error
)
msg_rc
(
STATUS_CHANGE
"( audio volume: %d )"
,
i_volume
);
if
(
!
i_error
)
msg_rc
(
STATUS_CHANGE
"( audio volume: %d )"
,
i_volume
);
...
...
src/audio_output/intf.c
View file @
0ce2c2e5
...
@@ -177,15 +177,6 @@ int aout_VolumeUp (vlc_object_t *obj, int value, audio_volume_t *volp)
...
@@ -177,15 +177,6 @@ int aout_VolumeUp (vlc_object_t *obj, int value, audio_volume_t *volp)
return
ret
;
return
ret
;
}
}
#undef aout_VolumeDown
/**
* Lowers the volume. See aout_VolumeUp().
*/
int
aout_VolumeDown
(
vlc_object_t
*
obj
,
int
steps
,
audio_volume_t
*
volp
)
{
return
aout_VolumeUp
(
obj
,
-
steps
,
volp
);
}
#undef aout_ToggleMute
#undef aout_ToggleMute
/**
/**
* Toggles the mute state.
* Toggles the mute state.
...
...
src/libvlccore.sym
View file @
0ce2c2e5
...
@@ -20,7 +20,6 @@ aout_FormatPrepare
...
@@ -20,7 +20,6 @@ aout_FormatPrepare
aout_FormatPrint
aout_FormatPrint
aout_FormatPrintChannels
aout_FormatPrintChannels
aout_OutputNextBuffer
aout_OutputNextBuffer
aout_VolumeDown
aout_VolumeGet
aout_VolumeGet
aout_ToggleMute
aout_ToggleMute
aout_IsMuted
aout_IsMuted
...
...
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