示例#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
 /// <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(FormatTag == other.FormatTag &&
            channels == other.channels &&
            samples_per_second == other.samples_per_second &&
            AverageBytesPerSecond == other.AverageBytesPerSecond &&
            BitsPerSample == other.BitsPerSample);
 }
示例#4
0
 public override void ParseItem (ByteVector id, ByteVector data, int start, int length)
 {
    if (id == "strf")
       Codec = new WaveFormatEx (data, start);
 }
示例#5
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;
 }
 public bool Equals(WaveFormatEx other)
 {
     return ((((this.format_tag == other.format_tag) && (this.channels == other.channels)) && ((this.samples_per_second == other.samples_per_second) && (this.average_bytes_per_second == other.average_bytes_per_second))) && (this.bits_per_sample == other.bits_per_sample));
 }