/// <summary> /// Starts the music with the last style specified. /// </summary> public void ResumeMusic() { // sanity check if (Style == null || Personality == null || Band == null || Band == "") { throw new InvalidOperationException("Can't resume playback without it being previously set"); } // XXX: Why not Queue? Ppmusau.MT_StartMusic(Style.Pointer, Personality.Name, Band); }
/// <summary> /// Starts the music with the specified parameters. /// </summary> /// <param name="style">The style of music to play.</param> /// <param name="personality">The personality that the music takes on.</param> /// <param name="band">The band that plays the instruments.</param> public void StartMusic(Style style, Personality personality, string band) { // sanity check if (style != personality.Style) { throw new ArgumentException("Personality style doesn't match"); } if (band == null || band == "") { throw new ArgumentNullException("Band cannot be empty"); } _style = style; _personality = personality; _band = band; // XXX: Why not Queue? Ppmusau.MT_StartMusic(style.Pointer, personality.Name, band); }