Пример #1
0
        /// <summary>
        /// "Construct" this object using a StorageFile object/media file.
        /// </summary>
        /// <param name="file">The file</param>
        /// <returns>The newly constructed NBAudio object</returns>
        public static Task <NBAudio> FromStorageFileAsync(StorageFile file)
        {
            NBAudio nbAudio = new NBAudio(file);

            return(nbAudio.SetupPropertiesAsync());
        }
Пример #2
0
        /// <summary>
        /// The most basic way of "constructing" this object by providing all the needed info.
        /// </summary>
        /// <param name="path">Path to the media file.</param>
        /// <param name="name">Name of the file</param>
        /// <param name="format">Extension of the file.</param>
        /// <returns>The newly constructed NBAudio object</returns>
        public static Task <NBAudio> FromGivenInfoAsync(string path, string name, string format)
        {
            NBAudio nbAudio = new NBAudio(path, name, format);

            return(nbAudio.SetupPropertiesAsync());
        }