Table of Contents

Struct PlayRange

Namespace
Stride.Media
Assembly
Stride.dll

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

start TimeSpan

The Stating time.

length TimeSpan

The Length of the audio extract to play.

Fields

Length

The Length of the audio extract to play.

public TimeSpan Length

Field Value

TimeSpan

Start

The Stating time.

public TimeSpan Start

Field Value

TimeSpan

Properties

End

The Ending time.

public TimeSpan End { get; set; }

Property Value

TimeSpan

Methods

Equals(PlayRange)

public bool Equals(PlayRange other)

Parameters

other PlayRange

Returns

bool

Equals(object)

Indicates whether this instance and a specified object are equal.

public override bool Equals(object obj)

Parameters

obj object

The 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

bool

Operators

operator ==(PlayRange, PlayRange)

public static bool operator ==(PlayRange left, PlayRange right)

Parameters

left PlayRange
right PlayRange

Returns

bool

operator !=(PlayRange, PlayRange)

public static bool operator !=(PlayRange left, PlayRange right)

Parameters

left PlayRange
right PlayRange

Returns

bool