/// <summary> /// /// </summary> /// <param name="music"></param> public static void Load(Music music) { if (music == null) { throw new ArgumentNullException("music"); } music.Handle = Mixer.LoadMusic(music.FileName); CurrentMusic = music; }
/// <summary> /// Loads a music sample from a byte array. /// </summary> /// <param name="data">data buffer</param> public Music(byte[] data) { Mixer.OpenInternal(); this.Handle = Mixer.LoadMusic(data); }
/// <summary> /// Loads a music sample from a file. /// </summary> /// <param name="fileName">The file path to load from.</param> public Music(string fileName) { Mixer.OpenInternal(); this.Handle = Mixer.LoadMusic(fileName); m_FileName = fileName; }