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
d4e655fa
Commit
d4e655fa
authored
Apr 29, 2013
by
Sandeep Kumar
Committed by
Rémi Denis-Courmont
Apr 29, 2013
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
aout: Increase/decrease volume in steps of 5%
Signed-off-by:
Rémi Denis-Courmont
<
remi@remlab.net
>
parent
1e681020
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
8 additions
and
8 deletions
+8
-8
modules/gui/qt4/components/controller_widget.cpp
modules/gui/qt4/components/controller_widget.cpp
+1
-1
modules/gui/qt4/util/input_slider.cpp
modules/gui/qt4/util/input_slider.cpp
+1
-1
modules/gui/qt4/util/input_slider.hpp
modules/gui/qt4/util/input_slider.hpp
+1
-1
modules/gui/skins2/vars/volume.cpp
modules/gui/skins2/vars/volume.cpp
+1
-1
src/libvlc-module.c
src/libvlc-module.c
+2
-2
src/playlist/aout.c
src/playlist/aout.c
+2
-2
No files found.
modules/gui/qt4/components/controller_widget.cpp
View file @
d4e655fa
...
@@ -88,7 +88,7 @@ SoundWidget::SoundWidget( QWidget *_parent, intf_thread_t * _p_intf,
...
@@ -88,7 +88,7 @@ SoundWidget::SoundWidget( QWidget *_parent, intf_thread_t * _p_intf,
if
(
b_shiny
)
if
(
b_shiny
)
{
{
volumeSlider
=
new
SoundSlider
(
this
,
volumeSlider
=
new
SoundSlider
(
this
,
config_Get
In
t
(
p_intf
,
"volume-step"
),
config_Get
Floa
t
(
p_intf
,
"volume-step"
),
var_InheritString
(
p_intf
,
"qt-slider-colours"
),
var_InheritString
(
p_intf
,
"qt-slider-colours"
),
var_InheritInteger
(
p_intf
,
"qt-max-volume"
)
);
var_InheritInteger
(
p_intf
,
"qt-max-volume"
)
);
}
}
...
...
modules/gui/qt4/util/input_slider.cpp
View file @
d4e655fa
...
@@ -441,7 +441,7 @@ bool SeekSlider::isAnimationRunning() const
...
@@ -441,7 +441,7 @@ bool SeekSlider::isAnimationRunning() const
#define WHEIGHT 22 // px
#define WHEIGHT 22 // px
#define SOUNDMIN 0 // %
#define SOUNDMIN 0 // %
SoundSlider
::
SoundSlider
(
QWidget
*
_parent
,
in
t
_i_step
,
SoundSlider
::
SoundSlider
(
QWidget
*
_parent
,
floa
t
_i_step
,
char
*
psz_colors
,
int
max
)
char
*
psz_colors
,
int
max
)
:
QAbstractSlider
(
_parent
)
:
QAbstractSlider
(
_parent
)
{
{
...
...
modules/gui/qt4/util/input_slider.hpp
View file @
d4e655fa
...
@@ -130,7 +130,7 @@ class SoundSlider : public QAbstractSlider
...
@@ -130,7 +130,7 @@ class SoundSlider : public QAbstractSlider
{
{
Q_OBJECT
Q_OBJECT
public:
public:
SoundSlider
(
QWidget
*
_parent
,
in
t
_i_step
,
char
*
psz_colors
,
int
max
=
SOUNDMAX
);
SoundSlider
(
QWidget
*
_parent
,
floa
t
_i_step
,
char
*
psz_colors
,
int
max
=
SOUNDMAX
);
void
setMuted
(
bool
);
/* Set Mute status */
void
setMuted
(
bool
);
/* Set Mute status */
protected:
protected:
...
...
modules/gui/skins2/vars/volume.cpp
View file @
d4e655fa
...
@@ -35,7 +35,7 @@
...
@@ -35,7 +35,7 @@
Volume
::
Volume
(
intf_thread_t
*
pIntf
)
:
VarPercent
(
pIntf
)
Volume
::
Volume
(
intf_thread_t
*
pIntf
)
:
VarPercent
(
pIntf
)
{
{
// compute preferred step in [0.,1.] range
// compute preferred step in [0.,1.] range
m_step
=
(
float
)
config_GetIn
t
(
pIntf
,
"volume-step"
)
m_step
=
config_GetFloa
t
(
pIntf
,
"volume-step"
)
/
(
float
)
AOUT_VOLUME_MAX
;
/
(
float
)
AOUT_VOLUME_MAX
;
// set current volume from the playlist
// set current volume from the playlist
...
...
src/libvlc-module.c
View file @
d4e655fa
...
@@ -142,7 +142,7 @@ static const char *const ppsz_snap_formats[] =
...
@@ -142,7 +142,7 @@ static const char *const ppsz_snap_formats[] =
#define VOLUME_STEP_TEXT N_("Audio output volume step")
#define VOLUME_STEP_TEXT N_("Audio output volume step")
#define VOLUME_STEP_LONGTEXT N_( \
#define VOLUME_STEP_LONGTEXT N_( \
"The step size of the volume is adjustable using this option.")
"The step size of the volume is adjustable using this option.")
#define AOUT_VOLUME_STEP 1
3
#define AOUT_VOLUME_STEP 1
2.8
#define VOLUME_SAVE_TEXT N_( "Remember the audio volume" )
#define VOLUME_SAVE_TEXT N_( "Remember the audio volume" )
#define VOLUME_SAVE_LONGTEXT N_( \
#define VOLUME_SAVE_LONGTEXT N_( \
...
@@ -1460,7 +1460,7 @@ vlc_module_begin ()
...
@@ -1460,7 +1460,7 @@ vlc_module_begin ()
add_float
(
"gain"
,
1
.,
GAIN_TEXT
,
GAIN_LONGTEXT
,
true
)
add_float
(
"gain"
,
1
.,
GAIN_TEXT
,
GAIN_LONGTEXT
,
true
)
change_float_range
(
0
.,
8
.
)
change_float_range
(
0
.,
8
.
)
add_obsolete_integer
(
"volume"
)
/* since 2.1.0 */
add_obsolete_integer
(
"volume"
)
/* since 2.1.0 */
add_
integer
(
"volume-step"
,
AOUT_VOLUME_STEP
,
VOLUME_STEP_TEXT
,
add_
float
(
"volume-step"
,
AOUT_VOLUME_STEP
,
VOLUME_STEP_TEXT
,
VOLUME_STEP_LONGTEXT
,
true
)
VOLUME_STEP_LONGTEXT
,
true
)
change_integer_range
(
1
,
AOUT_VOLUME_DEFAULT
)
change_integer_range
(
1
,
AOUT_VOLUME_DEFAULT
)
add_bool
(
"volume-save"
,
true
,
VOLUME_SAVE_TEXT
,
VOLUME_SAVE_TEXT
,
true
)
add_bool
(
"volume-save"
,
true
,
VOLUME_SAVE_TEXT
,
VOLUME_SAVE_TEXT
,
true
)
...
...
src/playlist/aout.c
View file @
d4e655fa
...
@@ -76,7 +76,7 @@ int playlist_VolumeUp (playlist_t *pl, int value, float *volp)
...
@@ -76,7 +76,7 @@ int playlist_VolumeUp (playlist_t *pl, int value, float *volp)
{
{
int
ret
=
-
1
;
int
ret
=
-
1
;
value
*=
var_InheritInteger
(
pl
,
"volume-step"
);
float
delta
=
value
*
var_InheritFloat
(
pl
,
"volume-step"
);
audio_output_t
*
aout
=
playlist_GetAout
(
pl
);
audio_output_t
*
aout
=
playlist_GetAout
(
pl
);
if
(
aout
!=
NULL
)
if
(
aout
!=
NULL
)
...
@@ -84,7 +84,7 @@ int playlist_VolumeUp (playlist_t *pl, int value, float *volp)
...
@@ -84,7 +84,7 @@ int playlist_VolumeUp (playlist_t *pl, int value, float *volp)
float
vol
=
aout_VolumeGet
(
aout
);
float
vol
=
aout_VolumeGet
(
aout
);
if
(
vol
>=
0
.)
if
(
vol
>=
0
.)
{
{
vol
+=
value
/
(
float
)
AOUT_VOLUME_DEFAULT
;
vol
+=
delta
/
(
float
)
AOUT_VOLUME_DEFAULT
;
if
(
vol
<
0
.)
if
(
vol
<
0
.)
vol
=
0
.;
vol
=
0
.;
if
(
vol
>
2
.)
if
(
vol
>
2
.)
...
...
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