Ejemplo n.º 1
0
        /// <summary>
        /// Creates a new instance of the <see cref="Mp3Frame"/> class based on a <see cref="Stream"/>.
        /// </summary>
        /// <param name="stream"><see cref="Stream"/> which provides MP3 data.</param>
        /// <returns>A new instance of the <see cref="Mp3Frame"/> class based on the specified <paramref name="stream"/>.</returns>
        public static Mp3Frame FromStream(Stream stream)
        {
            Mp3Frame frame = new Mp3Frame(stream);

            return(frame.FindFrame(stream, stream.CanSeek) ? frame : null);
        }