Exemple #1
0
 /// <summary>Removes all content from this audio package.</summary>
 private void Clear()
 {
     // Clear any synth:
     Stop();
     Contents = null;
 }
Exemple #2
0
 /// <summary>Creates a package for the given already loaded contents.</summary>
 public AudioPackage(AudioFormat contents)
 {
     Contents = contents;
 }
Exemple #3
0
        /// <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());
        }