Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-gpu
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-gpu
Commits
e088c92b
Commit
e088c92b
authored
Mar 01, 2007
by
Jean-Baptiste Kempf
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Qt4 - SimplePrefs - Audio: Small fixes and normalization for volume.
parent
ec37e0e7
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
18 additions
and
12 deletions
+18
-12
modules/gui/qt4/components/preferences_widgets.cpp
modules/gui/qt4/components/preferences_widgets.cpp
+1
-2
modules/gui/qt4/components/preferences_widgets.hpp
modules/gui/qt4/components/preferences_widgets.hpp
+1
-1
modules/gui/qt4/components/simple_preferences.cpp
modules/gui/qt4/components/simple_preferences.cpp
+16
-9
No files found.
modules/gui/qt4/components/preferences_widgets.cpp
View file @
e088c92b
...
...
@@ -551,8 +551,7 @@ void IntegerRangeConfigControl::finish()
IntegerRangeSliderConfigControl
::
IntegerRangeSliderConfigControl
(
vlc_object_t
*
_p_this
,
module_config_t
*
_p_item
,
QLabel
*
_label
,
QSlider
*
_slider
,
bool
*
_bool
)
:
QLabel
*
_label
,
QSlider
*
_slider
)
:
VIntConfigControl
(
_p_this
,
_p_item
)
{
slider
=
_slider
;
...
...
modules/gui/qt4/components/preferences_widgets.hpp
View file @
e088c92b
...
...
@@ -130,7 +130,7 @@ class IntegerRangeSliderConfigControl : public VIntConfigControl
{
public:
IntegerRangeSliderConfigControl
(
vlc_object_t
*
,
module_config_t
*
,
QLabel
*
,
QSlider
*
,
bool
*
);
QLabel
*
,
QSlider
*
);
virtual
~
IntegerRangeSliderConfigControl
()
{};
virtual
int
getValue
();
protected:
...
...
modules/gui/qt4/components/simple_preferences.cpp
View file @
e088c92b
...
...
@@ -93,6 +93,17 @@ SPrefsPanel::SPrefsPanel( intf_thread_t *_p_intf, QWidget *_parent,
controls.append( control ); \
}
#define CONFIG_GENERIC_NO_BOOL( option, type, label, qcontrol ) \
p_config = config_FindConfig( VLC_OBJECT(p_intf), option ); \
if( p_config ) \
{ \
control = new type ## ConfigControl( VLC_OBJECT(p_intf), \
p_config, label, ui.qcontrol ); \
controls.append( control ); \
}
#define START_SPREFS_CAT( name , label ) \
case SPrefs ## name: \
{ \
...
...
@@ -162,8 +173,7 @@ SPrefsPanel::SPrefsPanel( intf_thread_t *_p_intf, QWidget *_parent,
#endif
CONFIG_GENERIC
(
"audio"
,
Bool
,
NULL
,
enableAudio
);
CONFIG_GENERIC
(
"volume"
,
IntegerRangeSlider
,
NULL
,
defaultVolume
);
CONFIG_GENERIC_NO_BOOL
(
"volume"
,
IntegerRangeSlider
,
NULL
,
defaultVolume
);
CONFIG_GENERIC
(
"audio-language"
,
StringList
,
NULL
,
preferredAudioLanguage
);
CONFIG_GENERIC
(
"spdif"
,
Bool
,
NULL
,
spdifBox
);
...
...
@@ -172,21 +182,18 @@ SPrefsPanel::SPrefsPanel( intf_thread_t *_p_intf, QWidget *_parent,
CONFIG_GENERIC
(
"aout"
,
Module
,
NULL
,
outputModule
);
#ifndef WIN32
CONFIG_GENERIC
(
"alsadev"
,
StringList
,
NULL
,
alsaDevice
);
CONFIG_GENERIC
(
"alsadev"
,
StringList
,
NULL
,
alsaDevice
);
CONFIG_GENERIC
(
"dspdev"
,
String
,
NULL
,
OSSDevice
);
//FIXME File
#else
CONFIG_GENERIC
(
"directx-audio-device"
,
IntegerList
,
NULL
,
CONFIG_GENERIC
(
"directx-audio-device"
,
IntegerList
,
NULL
,
DirectXDevice
);
#endif
CONFIG_GENERIC
(
"audiofile-file"
,
String
,
NULL
,
FileName
);
//Fixme File
CONFIG_GENERIC
(
"headphone-dolby"
,
Bool
,
NULL
,
headphoneEffect
);
#if 0 // Not found for normalizer effect
CONFIG_GENERIC( "" , , NULL, );
#endif
// CONFIG_GENERIC( "" , Bool, NULL, ); activation of normalizer
CONFIG_GENERIC_NO_BOOL
(
"norm-max-level"
,
Float
,
NULL
,
volNormalizer
);
CONFIG_GENERIC
(
"audio-visual"
,
Module
,
NULL
,
visualisation
);
END_SPREFS_CAT
;
START_SPREFS_CAT
(
InputAndCodecs
,
"Input & Codecs settings"
);
...
...
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