[mythtv-commits] Ticket #3442: Enable song information on changing visualizers
MythTV
mythtv at cvs.mythtv.org
Fri Jun 1 11:29:03 UTC 2007
#3442: Enable song information on changing visualizers
-------------------------+--------------------------------------------------
Reporter: anonymous | Owner: stuartm
Type: enhancement | Status: new
Priority: minor | Milestone: 0.21
Component: mythmusic | Version: head
Severity: medium | Resolution:
-------------------------+--------------------------------------------------
Comment(by wilhelm.eger at uni-jena.de):
This one?
{{{
void PlaybackBoxMusic::CycleVisualizer()
{
// Only change the visualizer if there is more than 1 visualizer
// and the user currently has a visualizer active
if (visual_modes.count() > 1 && visualizer_status > 0)
{
if (random_visualizer)
{
unsigned int next_visualizer;
//Find a visual thats not like the previous visual
do
next_visualizer = rand() % visual_modes.count();
while (next_visualizer == current_visual);
current_visual = next_visualizer;
}
else
{
//Change to the next selected visual
current_visual = (current_visual + 1) % visual_modes.count();
}
//Change to the new visualizer
visual_mode_timer->stop();
mainvisual->setVisual("Blank");
mainvisual->setVisual(visual_modes[current_visual]);
}
else if (visual_modes.count() == 1 && visual_modes[current_visual] ==
"AlbumArt" &&
visualizer_status > 0)
{
// If only the AlbumArt visualization is selected, then go ahead
and
// restart the visualization. This will give AlbumArt the
opportunity
// to change images if there are multiple images available.
visual_mode_timer->stop();
mainvisual->setVisual("Blank");
mainvisual->setVisual(visual_modes[current_visual]);
}
if (show_cycle_visualizer)
{
bannerEnable(tr("Visualization: ") + visual_modes[current_visual],
4000);
}
else
{
bannerEnable(curMeta, show_album_art);
}
}
}}}
--
Ticket URL: <http://svn.mythtv.org/trac/ticket/3442#comment:4>
MythTV <http://svn.mythtv.org/trac>
MythTV
More information about the mythtv-commits
mailing list