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
eed192a4
Commit
eed192a4
authored
Feb 25, 2012
by
Jean-Baptiste Kempf
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Qt: increase the granularity of the spatializer module
parent
1e0af725
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
13 deletions
+13
-13
modules/gui/qt4/components/extended_panels.cpp
modules/gui/qt4/components/extended_panels.cpp
+13
-13
No files found.
modules/gui/qt4/components/extended_panels.cpp
View file @
eed192a4
...
...
@@ -1366,19 +1366,19 @@ Spatializer::Spatializer( intf_thread_t *_p_intf, QWidget *_parent )
spatCtrl
[
i
]
=
new
QSlider
(
Qt
::
Vertical
);
if
(
i
<
2
)
{
spatCtrl
[
i
]
->
setMaximum
(
10
);
spatCtrl
[
i
]
->
setValue
(
2
);
spatCtrl
[
i
]
->
setMaximum
(
10
0
);
spatCtrl
[
i
]
->
setValue
(
2
0
);
}
else
if
(
i
<
4
)
{
spatCtrl
[
i
]
->
setMaximum
(
10
);
spatCtrl
[
i
]
->
setValue
(
2
);
spatCtrl
[
i
]
->
setMinimum
(
-
10
);
spatCtrl
[
i
]
->
setMaximum
(
10
0
);
spatCtrl
[
i
]
->
setValue
(
2
0
);
spatCtrl
[
i
]
->
setMinimum
(
-
10
0
);
}
else
{
spatCtrl
[
i
]
->
setMaximum
(
4
);
spatCtrl
[
i
]
->
setValue
(
1
);
spatCtrl
[
i
]
->
setMaximum
(
4
0
);
spatCtrl
[
i
]
->
setValue
(
1
0
);
}
oldControlVars
[
i
]
=
spatCtrl
[
i
]
->
value
();
...
...
@@ -1453,20 +1453,20 @@ void Spatializer::setValues()
for
(
int
i
=
0
;
i
<
NUM_SP_CTRL
;
i
++
)
{
float
f
=
(
float
)(
spatCtrl
[
i
]
->
value
()
)
;
float
f
=
(
float
)(
spatCtrl
[
i
]
->
value
()
)
/
10
;
ctrl_readout
[
i
]
->
setText
(
QString
::
number
(
f
,
'f'
,
1
)
);
}
if
(
p_aout
)
{
for
(
int
i
=
0
;
i
<
NUM_SP_CTRL
;
i
++
)
{
float
f
=
(
float
)(
spatCtrl
[
i
]
->
value
()
)
/
10
;
if
(
oldControlVars
[
i
]
!=
spatCtrl
[
i
]
->
value
()
)
{
var_SetFloat
(
p_aout
,
spat_controls
[
i
].
psz_name
,
(
float
)
spatCtrl
[
i
]
->
value
()
);
config_PutFloat
(
p_intf
,
spat_controls
[
i
].
psz_name
,
(
float
)
spatCtrl
[
i
]
->
value
()
);
oldControlVars
[
i
]
=
(
float
)
spatCtrl
[
i
]
->
value
();
var_SetFloat
(
p_aout
,
spat_controls
[
i
].
psz_name
,
f
);
config_PutFloat
(
p_intf
,
spat_controls
[
i
].
psz_name
,
f
);
oldControlVars
[
i
]
=
spatCtrl
[
i
]
->
value
();
}
}
vlc_object_release
(
p_aout
);
...
...
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