Пример #1
0
 public override void ParseItem(ByteVector id, ByteVector data, int start, int length)
 {
     if (id == "strf")
     {
         Codec = new WaveFormatEx(data, start);
     }
 }
Пример #2
0
 /// <summary>
 ///    Checks whether or not the current instance is equal to
 ///    another instance of <see cref="WaveFormatEx" />.
 /// </summary>
 /// <param name="other">
 ///    A <see cref="WaveFormatEx" /> object to compare to the
 ///    current instance.
 /// </param>
 /// <returns>
 ///    A <see cref="bool" /> value indicating whether or not the
 ///    current instance is equal to <paramref name="other" />.
 /// </returns>
 /// <seealso cref="M:System.IEquatable`1.Equals" />
 public bool Equals(WaveFormatEx other)
 {
     return(format_tag == other.format_tag &&
            channels == other.channels &&
            samples_per_second == other.samples_per_second &&
            average_bytes_per_second == other.average_bytes_per_second &&
            bits_per_sample == other.bits_per_sample);
 }
Пример #3
0
 public override void ParseItem (ByteVector id, ByteVector data, int start, int length)
 {
    if (id == "strf")
       Codec = new WaveFormatEx (data, start);
 }
Пример #4
0
		/// <summary>
		///    Checks whether or not the current instance is equal to
		///    another instance of <see cref="WaveFormatEx" />.
		/// </summary>
		/// <param name="other">
		///    A <see cref="WaveFormatEx" /> object to compare to the
		///    current instance.
		/// </param>
		/// <returns>
		///    A <see cref="bool" /> value indicating whether or not the
		///    current instance is equal to <paramref name="other" />.
		/// </returns>
		/// <seealso cref="M:System.IEquatable`1.Equals" />
		public bool Equals (WaveFormatEx other)
		{
			return format_tag == other.format_tag &&
				channels == other.channels &&
				samples_per_second == other.samples_per_second &&
				average_bytes_per_second == other.average_bytes_per_second &&
				bits_per_sample == other.bits_per_sample;
		}