Search Results for

    Show / Hide Table of Contents

    Class AudioBufferStateChangeEvent

    Event raised when the state of an audio buffer changes.

    Inheritance
    object
    AudioBufferStateChangeEvent
    Implements
    IEvent
    Inherited Members
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: Glitch9.AIDevKit
    Assembly: Glitch9.AIDevKit.dll
    Syntax
    public sealed class AudioBufferStateChangeEvent : IEvent

    Constructors

    | Edit this page View Source

    AudioBufferStateChangeEvent(AudioBufferState, string, long, long)

    Initializes a new instance of the AudioBufferStateChangeEvent event.

    Declaration
    public AudioBufferStateChangeEvent(AudioBufferState state, string previousItemId, long audioStartMs = -1, long audioEndMs = -1)
    Parameters
    Type Name Description
    AudioBufferState state

    The current state of the audio buffer.

    string previousItemId

    The ID of the previous item in the buffer.

    long audioStartMs

    The audio start time in milliseconds. Default is -1.

    long audioEndMs

    The audio end time in milliseconds. Default is -1.

    Properties

    | Edit this page View Source

    AudioEndMs

    Gets the audio end time in milliseconds.

    Declaration
    public long AudioEndMs { get; }
    Property Value
    Type Description
    long
    | Edit this page View Source

    AudioStartMs

    Gets the audio start time in milliseconds.

    Declaration
    public long AudioStartMs { get; }
    Property Value
    Type Description
    long
    | Edit this page View Source

    NewState

    Gets the current state of the audio buffer.

    Declaration
    public AudioBufferState NewState { get; }
    Property Value
    Type Description
    AudioBufferState
    | Edit this page View Source

    PreviousItemId

    Gets the ID of the previous item in the buffer.

    Declaration
    public string PreviousItemId { get; }
    Property Value
    Type Description
    string

    Implements

    IEvent

    Extension Methods

    ArrayExtensions.ToArrayOrEmpty<T>(T)
    ArrayExtensions.ToArrayOrNull<T>(T)
    EventExtensions.ToDelta<T>(T, string, int, string, bool)
    EventExtensions.ToDone<T>(T, string, int, string)
    EventExtensions.ToEvent<T>(T)
    EventExtensions.UpcastDelta<T1, T2>(T1, string, int, string, bool)
    FallbackExtensions.IsOr<TParent, TChild>(TParent, TChild)
    ResponseCastingExtensions.GetResult<T>(T)
    SystemExtensions.GetName(object)
    • Edit this page
    • View Source
    In this article
    Back to top AI DevKit Documentation