Currently, if the AlbumArt visualization is selected and there are multiple
images available for an album, it is not possible to have MythMusic
automatically change the image after playing a track. The same image will
always be displayed while the album is being played.
This patch will have the AlbumArt visualizer randomly select an image after
each song change if the "Change Visualizer on each song" option is selected.
If this option is not selected, then the current behavior will remain.
--
----------------------
Todd J Martin
[EMAIL PROTECTED]
Index: playbackbox.cpp
===================================================================
RCS file: /var/lib/mythcvs/mythmusic/mythmusic/playbackbox.cpp,v
retrieving revision 1.82
diff -u -r1.82 playbackbox.cpp
--- playbackbox.cpp 7 Feb 2005 19:52:23 -0000 1.82
+++ playbackbox.cpp 11 Mar 2005 02:11:55 -0000
@@ -915,6 +915,16 @@
visual_mode_timer->stop();
mainvisual->setVisual("Blank");
mainvisual->setVisual(new_visualizer);
+ } else if (mainvisual->numVisualizers() == 1 && visual_mode == "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.
+ new_visualizer = visual_mode;
+ visual_mode_timer->stop();
+ mainvisual->setVisual("Blank");
+ mainvisual->setVisual(new_visualizer);
}
}
_______________________________________________
mythtv-dev mailing list
[email protected]
http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-dev