Guest User

Xi Music Mod example

a guest
Sep 2nd, 2016
1,412
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. package
  2. {
  3.     import modifications.MusicMod;
  4.    
  5.     /**
  6.      * ...
  7.      * @author
  8.      */
  9.     public class M_WFTrainingMenu extends MusicMod
  10.     {
  11.         public function M_WFTrainingMenu()
  12.         {
  13.             //This value of this String is what you would use for the Character mod's variable "m_preferredMusicName"
  14.             musicName = "WF Training Menu";
  15.             //Create a new instance of the Sound object that has the music for the mod
  16.             sourceSound = new BGM_WFTrainingMenu;
  17.             //The text that the music player UI will display when this music is being played
  18.             displayInfo = "Training Menu - Wii Fit";
  19.             //Sets the start time to the closest value in milliseconds to 1584 samples, which is ~35.918 ms
  20.             startTime = ConvertSamplesToMilliseconds(1584);
  21.             // Loop point starts at 36 seconds
  22.             startLoopTime = 36000; //36 seconds
  23.             //By default the end loop point is -1, which means the end of the audio file. Since that's the intent in this case, no need to actually set a value for this.
  24.             //endLoopTime = -1;
  25.         }
  26.     }
  27. }
Advertisement
Add Comment
Please, Sign In to add comment