/// <summary>Removes all content from this audio package.</summary> private void Clear() { // Clear any synth: Stop(); Contents = null; }
/// <summary>Creates a package for the given already loaded contents.</summary> public AudioPackage(AudioFormat contents) { Contents = contents; }
/// <summary>Gets an instance of a format by the given file type.</summary> /// <param name="type">The name of the format, e.g. "ogg".</param> /// <returns>An AudioFormat.</returns> public static AudioFormat GetInstance(string type) { AudioFormat handler = Get(type); return(handler.Instance()); }