PlayRange Struct
Namespace: Stride.MediaAssembly: Stride.dll
Describes the range of audio samples to play, in time unit.
public struct PlayRange
Name | Description | |
---|---|---|
Constructors | ||
PlayRange(TimeSpan, TimeSpan) | Creates a new PlayRange structure. |
|
Fields | ||
Length | The Length of the audio extract to play. |
|
Start | The Stating time. |
|
Properties | ||
End | The Ending time. |
|
Methods | ||
Equals(PlayRange) | ||
Equals(Object) | ||
GetHashCode() | ||
IsValid() | Returns true if the range specifies a valid play range. This is Start is positive and Length is strictly positive. |
|
Operators | ||
Equality(PlayRange, PlayRange) | ||
Inequality(PlayRange, PlayRange) |
Constructors
PlayRange(TimeSpan, TimeSpan)
Creates a new PlayRange structure.
public PlayRange(TimeSpan start, TimeSpan length)
Parameters
Type | Name | Description |
---|---|---|
System.TimeSpan | start | The Stating time. |
System.TimeSpan | length | The Length of the audio extract to play. |
Fields
Length
The Length of the audio extract to play.
public TimeSpan Length
Field Value
Type | Description |
---|---|
System.TimeSpan |
Start
The Stating time.
public TimeSpan Start
Field Value
Type | Description |
---|---|
System.TimeSpan |
Properties
End
The Ending time.
public TimeSpan End { get; set; }
Property Value
Type | Description |
---|---|
System.TimeSpan |
Methods
Equals(PlayRange)
public bool Equals(PlayRange other)
Parameters
Type | Name | Description |
---|---|---|
PlayRange | other |
Returns
Type | Description |
---|---|
System.Boolean |
Equals(Object)
public override bool Equals(object obj)
Parameters
Type | Name | Description |
---|---|---|
System.Object | obj |
Returns
Type | Description |
---|---|
System.Boolean |
Overrides
System.ValueType.Equals(System.Object)
GetHashCode()
public override int GetHashCode()
Returns
Type | Description |
---|---|
System.Int32 |
Overrides
System.ValueType.GetHashCode()
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
Type | Description |
---|---|
System.Boolean |
Operators
Equality(PlayRange, PlayRange)
public static bool operator ==(PlayRange left, PlayRange right)
Parameters
Type | Name | Description |
---|---|---|
PlayRange | left | |
PlayRange | right |
Returns
Type | Description |
---|---|
System.Boolean |
Inequality(PlayRange, PlayRange)
public static bool operator !=(PlayRange left, PlayRange right)
Parameters
Type | Name | Description |
---|---|---|
PlayRange | left | |
PlayRange | right |
Returns
Type | Description |
---|---|
System.Boolean |
Inherited Members
System.ValueType.ToString()