Class AudioBufferStateChangeEvent
Event raised when the state of an audio buffer changes.
Implements
Inherited Members
Namespace: Glitch9.AIDevKit
Assembly: Glitch9.AIDevKit.dll
Syntax
public sealed class AudioBufferStateChangeEvent : IEvent
Constructors
| Edit this page View SourceAudioBufferStateChangeEvent(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 SourceAudioEndMs
Gets the audio end time in milliseconds.
Declaration
public long AudioEndMs { get; }
Property Value
| Type | Description |
|---|---|
| long |
AudioStartMs
Gets the audio start time in milliseconds.
Declaration
public long AudioStartMs { get; }
Property Value
| Type | Description |
|---|---|
| long |
NewState
Gets the current state of the audio buffer.
Declaration
public AudioBufferState NewState { get; }
Property Value
| Type | Description |
|---|---|
| AudioBufferState |
PreviousItemId
Gets the ID of the previous item in the buffer.
Declaration
public string PreviousItemId { get; }
Property Value
| Type | Description |
|---|---|
| string |