Stride

OPEN / CLOSE
  • Features
  • Blog
  • Documentation
  • Community
(icon) Download

  • Discord
  • Facebook
  • Twitter
  • YouTube

LANGUAGE

OPEN / CLOSE
  • English
  • 日本語
    Show / Hide Table of Contents

    PlayRange Struct

    Namespace: Stride.Media
    Assembly: 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)
    | Improve this Doc View Source

    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.

    | Improve this Doc View Source

    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
    | Improve this Doc View Source

    Properties


    End

    The Ending time.

    public TimeSpan End { get; set; }
    Property Value
    Type Description
    System.TimeSpan
    | Improve this Doc View Source

    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
    | Improve this Doc View Source

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

    Extension Methods

    ComponentBaseExtensions.DisposeBy<T>(T, ICollectorHolder)
    ComponentBaseExtensions.RemoveDisposeBy<T>(T, ICollectorHolder)
    • Improve this Doc
    • View Source
    In This Article

    Back to top

    Copyright © 2019-2021 .NET Foundation and Contributors
    Supported by the .NET Foundation