Thread: [BETA] Breakout
View Single Post
Old 05-10-2008, 05:29 PM   #20 (permalink)
Lucifer
Support Team
zB Programmer
Zune Guardian
 
Lucifer's Avatar
 
Join Date: Feb 2008
Posts: 724
Lucifer is a splendid one to beholdLucifer is a splendid one to beholdLucifer is a splendid one to beholdLucifer is a splendid one to beholdLucifer is a splendid one to beholdLucifer is a splendid one to behold
Default

Make sure you use this in the beginning of the game if you want shuffled music playback from the zune's media library:
Code:
using Microsoft.Xna.Framework.Audio;
using Microsoft.Xna.Framework.Content;
using Microsoft.Xna.Framework.Media;
using Microsoft.Xna.Framework.Storage;
and then add this in the main code just below : Content.RootDirectory = "Content";
Code:
  MediaPlayer.IsShuffled = true;
            MediaPlayer.IsRepeating = true;
            MediaLibrary ml = new MediaLibrary();
            SongCollection s = ml.Songs;
            MediaPlayer.Play(s);
            MediaPlayer.Queue.MoveNext();
            MediaPlayer.IsVisualizationEnabled = true;




Lucifer is offline