Struct PlayRange
Describes the range of audio samples to play, in time unit.
Inherited Members
Namespace: Evergine.Common.Audio
Assembly: Evergine.Common.dll
Syntax
public struct PlayRange
Constructors
PlayRange(TimeSpan, TimeSpan)
Initializes a new instance of the PlayRange structure.
Declaration
public PlayRange(TimeSpan start, TimeSpan length)
Parameters
Type | Name | Description |
---|---|---|
TimeSpan | start | The Stating time. |
TimeSpan | length | The Length of the audio extract to play. |
Fields
Length
The Length of the audio extract to play.
Declaration
public TimeSpan Length
Field Value
Type | Description |
---|---|
TimeSpan |
Start
The Stating time.
Declaration
public TimeSpan Start
Field Value
Type | Description |
---|---|
TimeSpan |
Properties
End
Gets the Ending time.
Declaration
public TimeSpan End { get; }
Property Value
Type | Description |
---|---|
TimeSpan |
Methods
Equals(object)
Declaration
public override bool Equals(object obj)
Parameters
Type | Name | Description |
---|---|---|
object | obj |
Returns
Type | Description |
---|---|
bool |
Overrides
GetHashCode()
Declaration
public override int GetHashCode()
Returns
Type | Description |
---|---|
int |
Overrides
Operators
operator ==(PlayRange, PlayRange)
Compares whether two PlayRange instances are equal.
Declaration
public static bool operator ==(PlayRange a, PlayRange b)
Parameters
Type | Name | Description |
---|---|---|
PlayRange | a | PlayRange instance on the left of the equal sign. |
PlayRange | b | PlayRange instance on the right of the equal sign. |
Returns
Type | Description |
---|---|
bool |
|
operator !=(PlayRange, PlayRange)
Compares whether two PlayRange instances are not equal.
Declaration
public static bool operator !=(PlayRange a, PlayRange b)
Parameters
Type | Name | Description |
---|---|---|
PlayRange | a | PlayRange instance on the left of the not equal sign. |
PlayRange | b | PlayRange instance on the right of the not equal sign. |
Returns
Type | Description |
---|---|
bool |
|