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
b0fdf364
Commit
b0fdf364
authored
Apr 17, 2012
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
aout: --volume-save to retain volume, enabled by default
parent
5c524ec7
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
0 deletions
+8
-0
src/audio_output/intf.c
src/audio_output/intf.c
+2
-0
src/libvlc-module.c
src/libvlc-module.c
+6
-0
No files found.
src/audio_output/intf.c
View file @
b0fdf364
...
...
@@ -87,6 +87,8 @@ static int commitVolume (vlc_object_t *obj, audio_output_t *aout,
/* update caller (input manager) volume */
var_SetInteger
(
obj
,
"volume"
,
volume
);
var_SetBool
(
obj
,
"mute"
,
mute
);
if
(
var_InheritBool
(
obj
,
"volume-save"
))
config_PutInt
(
obj
,
"volume"
,
volume
);
if
(
aout
!=
NULL
)
{
...
...
src/libvlc-module.c
View file @
b0fdf364
...
...
@@ -277,6 +277,11 @@ static const char *const ppsz_snap_formats[] =
"in a range from 0 to 1024." )
#define AOUT_VOLUME_STEP 32
#define VOLUME_SAVE_TEXT N_( "Remember the audio volume" )
#define VOLUME_SAVE_LONGTEXT N_( \
"The volume can be recorded and automatically restored next time " \
"VLC is used." )
#define AOUT_RATE_TEXT N_("Audio output frequency (Hz)")
#define AOUT_RATE_LONGTEXT N_( \
"You can force the audio output frequency here. Common values are " \
...
...
@@ -1591,6 +1596,7 @@ vlc_module_begin ()
add_integer_with_range
(
"volume-step"
,
AOUT_VOLUME_STEP
,
0
,
AOUT_VOLUME_MAX
,
VOLUME_STEP_TEXT
,
VOLUME_STEP_LONGTEXT
,
true
)
add_bool
(
"volume-save"
,
true
,
VOLUME_SAVE_TEXT
,
VOLUME_SAVE_TEXT
,
true
)
add_obsolete_integer
(
"aout-rate"
)
/* since 2.0.0 */
#if HAVE_FPU && !defined( __APPLE__ )
add_bool
(
"hq-resampling"
,
1
,
AOUT_RESAMP_TEXT
,
...
...
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