View Single Post
Old 06-04-2008, 06:23 PM   #56 (permalink)
Mitch
Zune Guardian
 
Join Date: Dec 2006
Location: Wisco
Posts: 672
Mitch has disabled reputation
Default

Code:
void setSongOptions()
{
    MediaPlayer.Pause();
    
    //Chose correct song and play it
    string randSongTitle;
    int random = RandomHelper.GetRandomInt(4);
    int randomSongIndex = RandomHelper.GetRandomInt(songCount);
    correctSong = mediaLibrary.Songs[randomSongIndex];

    //Fill list
    for (int count = 0; count < 4; count++)
    {
        randSongTitle = mediaLibrary.Songs[RandomHelper.GetRandomInt(songCount)].Name;
        while (randSongTitle == correctSong.Name)
            randSongTitle = mediaLibrary.Songs[RandomHelper.GetRandomInt(songCount)].Name;
        songTitles[count] = randSongTitle;
    }

    songTitles[random] = mediaLibrary.Songs[randomSongIndex].Name;

    MediaPlayer.Resume();
    MediaPlayer.Play(correctSong);
    correctAnswer = random;
    //roundTime = new TimeSpan();
    loadedSongs = true;
}
this should work now until shutout can pushout a good fix
__________________


Sig by MajerPayne
Use Mp3Tag to get your music to show up as playcount on Zune.net
This post may or may not contain accurate information. This post is that
of my own opinion, knowledge, and reasoning, and does not nessessarily
reflect that of CrowdGather or Zuneboards and their affiliates, period.





Mitch is offline