Search Results for

    Show / Hide Table of Contents

    Struct PlayRange

    Describes the range of audio samples to play, in units of time.

    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 starting 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 starting 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)

    Indicates whether this instance and a specified object are equal.

    Declaration
    public override bool Equals(object obj)
    Parameters
    Type Name Description
    object obj

    The object to compare with the current instance.

    Returns
    Type Description
    bool

    true if obj and this instance are the same type and represent the same value; otherwise, false.

    Overrides
    ValueType.Equals(object)

    GetHashCode()

    Returns the hash code for this instance.

    Declaration
    public override int GetHashCode()
    Returns
    Type Description
    int

    A 32-bit signed integer that is the hash code for this instance.

    Overrides
    ValueType.GetHashCode()

    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 side of the equal sign.

    PlayRange b

    PlayRange instance on the right side of the equal sign.

    Returns
    Type Description
    bool

    true if the instances are equal; false otherwise.

    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

    true if the instances are not equal; false otherwise.

    Extension Methods

    ReflectionHelper.GetMemberAssembly(object)
    ReflectionHelper.GetTypeName(object)
    In this article
    Back to top
    Generated by DocFX