Struct PlayRange
Describes the range of audio samples to play, in time unit.
public struct PlayRange
- Inherited Members
Constructors
PlayRange(TimeSpan, TimeSpan)
Creates a new PlayRange structure.
public PlayRange(TimeSpan start, TimeSpan length)
Parameters
Fields
Length
The Length of the audio extract to play.
public TimeSpan Length
Field Value
Start
The Stating time.
public TimeSpan Start
Field Value
Properties
End
The Ending time.
public TimeSpan End { get; set; }
Property Value
Methods
Equals(PlayRange)
public bool Equals(PlayRange other)
Parameters
other
PlayRange
Returns
Equals(object)
Indicates whether this instance and a specified object are equal.
public override bool Equals(object obj)
Parameters
obj
objectThe object to compare with the current instance.
Returns
- bool
true if
obj
and this instance are the same type and represent the same value; otherwise, false.
GetHashCode()
Returns the hash code for this instance.
public override int GetHashCode()
Returns
- int
A 32-bit signed integer that is the hash code for this instance.
IsValid()
Returns true if the range specifies a valid play range. This is Start is positive and Length is strictly positive.
public bool IsValid()
Returns
Operators
operator ==(PlayRange, PlayRange)
public static bool operator ==(PlayRange left, PlayRange right)
Parameters
Returns
operator !=(PlayRange, PlayRange)
public static bool operator !=(PlayRange left, PlayRange right)