Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-1.1
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-1.1
Commits
76099331
Commit
76099331
authored
Jul 09, 2009
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Qt4: control aout through playlist
parent
3a03d629
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
17 additions
and
12 deletions
+17
-12
modules/gui/qt4/actions_manager.cpp
modules/gui/qt4/actions_manager.cpp
+3
-3
modules/gui/qt4/components/controller_widget.cpp
modules/gui/qt4/components/controller_widget.cpp
+11
-3
modules/gui/qt4/components/extended_panels.cpp
modules/gui/qt4/components/extended_panels.cpp
+3
-6
No files found.
modules/gui/qt4/actions_manager.cpp
View file @
76099331
...
@@ -170,16 +170,16 @@ void ActionsManager::frame()
...
@@ -170,16 +170,16 @@ void ActionsManager::frame()
void
ActionsManager
::
toggleMuteAudio
()
void
ActionsManager
::
toggleMuteAudio
()
{
{
aout_ToggleMute
(
p_intf
,
NULL
);
aout_ToggleMute
(
THEPL
,
NULL
);
}
}
void
ActionsManager
::
AudioUp
()
void
ActionsManager
::
AudioUp
()
{
{
aout_VolumeUp
(
p_intf
,
1
,
NULL
);
aout_VolumeUp
(
THEPL
,
1
,
NULL
);
}
}
void
ActionsManager
::
AudioDown
()
void
ActionsManager
::
AudioDown
()
{
{
aout_VolumeDown
(
p_intf
,
1
,
NULL
);
aout_VolumeDown
(
THEPL
,
1
,
NULL
);
}
}
modules/gui/qt4/components/controller_widget.cpp
View file @
76099331
...
@@ -133,7 +133,9 @@ void SoundWidget::updateVolume( int i_sliderVolume )
...
@@ -133,7 +133,9 @@ void SoundWidget::updateVolume( int i_sliderVolume )
if
(
!
b_my_volume
)
if
(
!
b_my_volume
)
{
{
int
i_res
=
i_sliderVolume
*
(
AOUT_VOLUME_MAX
/
2
)
/
VOLUME_MAX
;
int
i_res
=
i_sliderVolume
*
(
AOUT_VOLUME_MAX
/
2
)
/
VOLUME_MAX
;
aout_VolumeSet
(
p_intf
,
i_res
);
playlist_t
*
p_playlist
=
pl_Hold
(
p_intf
);
aout_VolumeSet
(
p_playlist
,
i_res
);
pl_Release
(
p_intf
);
}
}
if
(
i_sliderVolume
==
0
)
if
(
i_sliderVolume
==
0
)
{
{
...
@@ -154,7 +156,10 @@ void SoundWidget::updateVolume()
...
@@ -154,7 +156,10 @@ void SoundWidget::updateVolume()
{
{
/* Audio part */
/* Audio part */
audio_volume_t
i_volume
;
audio_volume_t
i_volume
;
aout_VolumeGet
(
p_intf
,
&
i_volume
);
playlist_t
*
p_playlist
=
pl_Hold
(
p_intf
);
aout_VolumeGet
(
p_playlist
,
&
i_volume
);
pl_Release
(
p_intf
);
i_volume
=
(
(
i_volume
+
1
)
*
VOLUME_MAX
)
/
(
AOUT_VOLUME_MAX
/
2
);
i_volume
=
(
(
i_volume
+
1
)
*
VOLUME_MAX
)
/
(
AOUT_VOLUME_MAX
/
2
);
int
i_gauge
=
volumeSlider
->
value
();
int
i_gauge
=
volumeSlider
->
value
();
b_my_volume
=
false
;
b_my_volume
=
false
;
...
@@ -184,7 +189,10 @@ bool SoundWidget::eventFilter( QObject *obj, QEvent *e )
...
@@ -184,7 +189,10 @@ bool SoundWidget::eventFilter( QObject *obj, QEvent *e )
}
}
else
else
{
{
aout_ToggleMute
(
p_intf
,
NULL
);
playlist_t
*
p_playlist
=
pl_Hold
(
p_intf
);
aout_ToggleMute
(
p_playlist
,
NULL
);
pl_Release
(
p_intf
);
}
}
e
->
accept
();
e
->
accept
();
return
true
;
return
true
;
...
...
modules/gui/qt4/components/extended_panels.cpp
View file @
76099331
...
@@ -923,12 +923,9 @@ void Equalizer::updateUIFromCore()
...
@@ -923,12 +923,9 @@ void Equalizer::updateUIFromCore()
void
Equalizer
::
enable
()
void
Equalizer
::
enable
()
{
{
bool
en
=
ui
.
enableCheck
->
isChecked
();
bool
en
=
ui
.
enableCheck
->
isChecked
();
aout_EnableFilter
(
VLC_OBJECT
(
p_intf
),
"equalizer"
,
aout_EnableFilter
(
THEPL
,
"equalizer"
,
en
);
en
?
true
:
false
);
// aout_EnableFilter( THEPL, "upmixer", en );
// aout_EnableFilter( VLC_OBJECT( p_intf ), "upmixer",
// aout_EnableFilter( THEPL, "vsurround", en );
// en ? true : false );
// aout_EnableFilter( VLC_OBJECT( p_intf ), "vsurround",
// en ? true : false );
enable
(
en
);
enable
(
en
);
if
(
presetsComboBox
->
currentIndex
()
<
0
)
if
(
presetsComboBox
->
currentIndex
()
<
0
)
...
...
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