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
6bec4341
Commit
6bec4341
authored
Nov 01, 2012
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
aout: remove legacy aout_EnableFilter() and aout_VolumeUp()
parent
037a796b
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
0 additions
and
55 deletions
+0
-55
include/vlc_aout_intf.h
include/vlc_aout_intf.h
+0
-7
src/audio_output/intf.c
src/audio_output/intf.c
+0
-46
src/libvlccore.sym
src/libvlccore.sym
+0
-2
No files found.
include/vlc_aout_intf.h
View file @
6bec4341
...
...
@@ -33,9 +33,6 @@ VLC_API float aout_VolumeGet( vlc_object_t * );
#define aout_VolumeGet(a) aout_VolumeGet(VLC_OBJECT(a))
VLC_API
int
aout_VolumeSet
(
vlc_object_t
*
,
float
);
#define aout_VolumeSet(a, b) aout_VolumeSet(VLC_OBJECT(a), b)
VLC_API
int
aout_VolumeUp
(
vlc_object_t
*
,
int
,
float
*
);
#define aout_VolumeUp(a, b, c) aout_VolumeUp(VLC_OBJECT(a), b, c)
#define aout_VolumeDown(a, b, c) aout_VolumeUp(a, -(b), c)
VLC_API
int
aout_MuteSet
(
vlc_object_t
*
,
bool
);
#define aout_MuteSet(a, b) aout_MuteSet(VLC_OBJECT(a), b)
VLC_API
int
aout_MuteGet
(
vlc_object_t
*
);
...
...
@@ -50,8 +47,4 @@ static inline int aout_MuteToggle (vlc_object_t *obj)
}
#define aout_MuteToggle(a) aout_MuteToggle(VLC_OBJECT(a))
VLC_API
void
aout_EnableFilter
(
vlc_object_t
*
,
const
char
*
,
bool
);
#define aout_EnableFilter( o, n, b ) \
aout_EnableFilter( VLC_OBJECT(o), n, b )
#endif
/* _VLC_AOUT_H */
src/audio_output/intf.c
View file @
6bec4341
...
...
@@ -95,31 +95,6 @@ int aout_VolumeSet (vlc_object_t *obj, float vol)
return
ret
;
}
#undef aout_VolumeUp
/**
* Raises the volume.
* \param value how much to increase (> 0) or decrease (< 0) the volume
* \param volp if non-NULL, will contain contain the resulting volume
*/
int
aout_VolumeUp
(
vlc_object_t
*
obj
,
int
value
,
float
*
volp
)
{
value
*=
var_InheritInteger
(
obj
,
"volume-step"
);
float
vol
=
aout_VolumeGet
(
obj
);
if
(
vol
<
0
.)
return
-
1
;
vol
+=
value
/
(
float
)
AOUT_VOLUME_DEFAULT
;
if
(
vol
<
0
.)
vol
=
0
.;
if
(
vol
>
2
.)
vol
=
2
.;
if
(
volp
!=
NULL
)
*
volp
=
vol
;
return
aout_VolumeSet
(
obj
,
vol
);
}
#undef aout_MuteGet
/**
* Gets the output mute status.
...
...
@@ -179,24 +154,3 @@ int aout_ChannelsRestart( vlc_object_t * p_this, const char * psz_variable,
aout_RequestRestart
(
p_aout
);
return
0
;
}
#undef aout_EnableFilter
/** Enable or disable an audio filter
* \param p_this a vlc object
* \param psz_name name of the filter
* \param b_add are we adding or removing the filter ?
*/
void
aout_EnableFilter
(
vlc_object_t
*
p_this
,
const
char
*
psz_name
,
bool
b_add
)
{
audio_output_t
*
p_aout
=
findAout
(
p_this
);
if
(
aout_ChangeFilterString
(
p_this
,
VLC_OBJECT
(
p_aout
),
"audio-filter"
,
psz_name
,
b_add
)
)
{
if
(
p_aout
)
aout_InputRequestRestart
(
p_aout
);
}
if
(
p_aout
)
vlc_object_release
(
p_aout
);
}
src/libvlccore.sym
View file @
6bec4341
...
...
@@ -6,14 +6,12 @@ aout_ChannelReorder
aout_ChannelsRestart
aout_CheckChannelExtraction
aout_CheckChannelReorder
aout_EnableFilter
aout_filter_RequestVout
aout_FormatPrepare
aout_FormatPrint
aout_FormatPrintChannels
aout_VolumeGet
aout_VolumeSet
aout_VolumeUp
aout_MuteSet
aout_MuteGet
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