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 Play
Declaration
public PlayRange(TimeSpan start, TimeSpan length)
Parameters
Type | Name | Description |
---|---|---|
Time |
start | The Stating time. |
Time |
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 |
---|---|
Time |
Start
The Stating time.
Declaration
public TimeSpan Start
Field Value
Type | Description |
---|---|
Time |
Properties
End
Gets the Ending time.
Declaration
public TimeSpan End { get; }
Property Value
Type | Description |
---|---|
Time |
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 Play
Declaration
public static bool operator ==(PlayRange a, PlayRange b)
Parameters
Type | Name | Description |
---|---|---|
Play |
a | Play |
Play |
b | Play |
Returns
Type | Description |
---|---|
bool |
|
operator !=(PlayRange, PlayRange)
Compares whether two Play
Declaration
public static bool operator !=(PlayRange a, PlayRange b)
Parameters
Type | Name | Description |
---|---|---|
Play |
a | Play |
Play |
b | Play |
Returns
Type | Description |
---|---|
bool |
|