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