Exemplo n.º 1
0
 private void StartBackgroundMusic()
 {
     if (Playlist != null) {
         Playlist.Stop ();
     }
     Log.Debug ("Background Music: ", BackgroundMusic);
     if (AudioFiles.ContainsKey (BackgroundMusic)) {
         Playlist = new LoopPlaylist (AudioFiles [BackgroundMusic]);
         Playlist.Shuffle ();
         Playlist.Start ();
     }
     else {
         Log.Message ("Warning: ", BackgroundMusic, ": no sound files available!");
     }
 }