示例#1
0
 public bool Equals(StreamHeader other)
 {
     return(header_data == other.header_data &&
            sample_rate == other.sample_rate &&
            version == other.version &&
            frames == other.frames);
 }
示例#2
0
        /// <summary>
        ///    Reads the audio properties from the file represented by
        ///    the current instance.
        /// </summary>
        /// <param name="start">
        ///    A <see cref="long" /> value containing the seek position
        ///    at which the tags end and the media data begins.
        /// </param>
        /// <param name="end">
        ///    A <see cref="long" /> value containing the seek position
        ///    at which the media data ends and the tags begin.
        /// </param>
        /// <param name="propertiesStyle">
        ///    A <see cref="ReadStyle" /> value specifying at what level
        ///    of accuracy to read the media properties, or <see
        ///    cref="ReadStyle.None" /> to ignore the properties.
        /// </param>
        /// <returns>
        ///    A <see cref="TagLib.Properties" /> object describing the
        ///    media properties of the file represented by the current
        ///    instance.
        /// </returns>
        protected override Properties ReadProperties(long start,
                                                     long end,
                                                     ReadStyle propertiesStyle)
        {
            StreamHeader header = new StreamHeader(header_block,
                                                   end - start);

            return(new Properties(TimeSpan.Zero, header));
        }
示例#3
0
		/// <summary>
		///    Reads the audio properties from the file represented by
		///    the current instance.
		/// </summary>
		/// <param name="start">
		///    A <see cref="long" /> value containing the seek position
		///    at which the tags end and the media data begins.
		/// </param>
		/// <param name="end">
		///    A <see cref="long" /> value containing the seek position
		///    at which the media data ends and the tags begin.
		/// </param>
		/// <param name="propertiesStyle">
		///    A <see cref="ReadStyle" /> value specifying at what level
		///    of accuracy to read the media properties, or <see
		///    cref="ReadStyle.None" /> to ignore the properties.
		/// </param>
		/// <returns>
		///    A <see cref="TagLib.Properties" /> object describing the
		///    media properties of the file represented by the current
		///    instance.
		/// </returns>
		protected override Properties ReadProperties (long start,
		                                              long end,
		                                              ReadStyle propertiesStyle)
		{
			StreamHeader header = new StreamHeader (header_block,
				end - start);
			return new Properties (TimeSpan.Zero, header);
		}
示例#4
0
		public bool Equals (StreamHeader other)
		{
			return header_data == other.header_data &&
				sample_rate == other.sample_rate &&
				version == other.version &&
				frames == other.frames;
		}