[mythtv] mythmusic visualition feature request
Matt Zimmerman
mdz at debian.org
Fri Feb 21 08:42:31 EST 2003
On Thu, Feb 20, 2003 at 11:45:20PM -0500, Andy Davidoff wrote:
> Patch against current CVS, set your
> VisualMode=BumpScope,MonoScope,StereoScope
> and enjoy.
> [...]
> - mainvisual->setVisual(visual_mode);
> + // select one of the list of visualization modes
> + mainvisual->setVisual(modes[rand() % modes.size()]);
> visualizer_is_active = true;
> }
> }
Unless you seed the PRNG by calling srand(), this will always yield the same
sequence of modes. Something like srand(time(NULL) + getpid()) should do.
--
- mdz
More information about the mythtv-dev
mailing list