Method StopMusic StopMusic(String) Cancels playing a music file. Declaration public static void StopMusic(string musicFile) Parameters Type Name Description System.String musicFile The music file to stop.