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
ddf080f5
Commit
ddf080f5
authored
Jul 23, 2013
by
David Fuhrmann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
macosx: set max volume as configuable
no new strings. close #8628
parent
8fd45605
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
11 additions
and
1 deletion
+11
-1
modules/gui/macosx/CoreInteraction.h
modules/gui/macosx/CoreInteraction.h
+2
-0
modules/gui/macosx/CoreInteraction.m
modules/gui/macosx/CoreInteraction.m
+5
-1
modules/gui/macosx/macosx.m
modules/gui/macosx/macosx.m
+4
-0
No files found.
modules/gui/macosx/CoreInteraction.h
View file @
ddf080f5
...
...
@@ -28,6 +28,8 @@
@interface
VLCCoreInteraction
:
NSObject
{
int
i_currentPlaybackRate
;
mtime_t
timeA
,
timeB
;
float
f_maxVolume
;
}
+
(
VLCCoreInteraction
*
)
sharedInstance
;
@property
(
readwrite
)
int
volume
;
...
...
modules/gui/macosx/CoreInteraction.m
View file @
ddf080f5
...
...
@@ -558,7 +558,11 @@ static VLCCoreInteraction *_o_sharedInstance = nil;
-
(
float
)
maxVolume
{
return
1
.
2
*
AOUT_VOLUME_DEFAULT
;
if
(
f_maxVolume
==
0
.)
{
f_maxVolume
=
(
float
)
var_InheritInteger
(
VLCIntf
,
"macosx-max-volume"
)
/
100
.
*
AOUT_VOLUME_DEFAULT
;
}
return
f_maxVolume
;
}
#pragma mark -
...
...
modules/gui/macosx/macosx.m
View file @
ddf080f5
...
...
@@ -128,6 +128,9 @@ static const char *const itunes_list_text[] = {
N_("Do nothing"), N_("Pause iTunes"), N_("Pause and resume iTunes")
};
#define VOLUME_MAX_TEXT N_("Maximum Volume displayed")
vlc_module_begin()
set_description(N_("Mac OS X interface"))
set_capability("interface", 200)
...
...
@@ -144,6 +147,7 @@ vlc_module_begin()
add_bool("macosx-show-playmode-buttons", false, PLAYMODEBUTTONS_TEXT, PLAYMODEBUTTONS_LONGTEXT, false)
add_bool("macosx-show-effects-button", false, EFFECTSBUTTON_TEXT, EFFECTSBUTTON_LONGTEXT, false)
add_bool("macosx-show-sidebar", true, SIDEBAR_TEXT, SIDEBAR_LONGTEXT, false)
add_integer_with_range("macosx-max-volume", 125, 60, 200, VOLUME_MAX_TEXT, VOLUME_MAX_TEXT, true)
set_section(N_("Behavior"), 0)
add_bool("macosx-autoplay", true, AUTOPLAY_OSX_TEST, AUTOPLAY_OSX_LONGTEXT, false)
...
...
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