Exemple #1
0
 /// <summary>
 ///    Parses a stream list item.
 /// </summary>
 /// <param name="id">
 ///    A <see cref="ByteVector" /> object containing the item's
 ///    ID.
 /// </param>
 /// <param name="data">
 ///    A <see cref="ByteVector" /> object containing the item's
 ///    data.
 /// </param>
 /// <param name="start">
 ///    A <see cref="uint" /> value specifying the index in
 ///    <paramref name="data" /> at which the item data begins.
 /// </param>
 /// <param name="length">
 ///    A <see cref="uint" /> value specifying the length of the
 ///    item.
 /// </param>
 public override void ParseItem(ByteVector id, ByteVector data,
                                int start, int length)
 {
     if (id == "strf")
     {
         Codec = new WaveFormatEx(data, start);
     }
 }
Exemple #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);
 }