UNPKG

@babylonjs/core

Version:

Getting started? Play directly with the Babylon.js API using our [playground](https://playground.babylonjs.com/). It also contains a lot of samples to learn how to use it.

41 lines (40 loc) 1.54 kB
import { FlowGraphEventBlock } from "../../flowGraphEventBlock.js"; import { type FlowGraphContext } from "../../flowGraphContext.js"; import { type IFlowGraphBlockConfiguration } from "../../flowGraphBlock.js"; import { type FlowGraphDataConnection } from "../../flowGraphDataConnection.js"; import { type AbstractSound } from "../../../AudioV2/abstractAudio/abstractSound.js"; /** * @experimental * An event block that fires when an Audio V2 sound stops or ends. * Subscribes to the sound's onEndedObservable, which fires when playback * stops for any reason (natural completion or a manual call to stop()). * Does not fire when a looping sound naturally restarts, but will still * fire if a looping sound is explicitly stopped. */ export declare class FlowGraphSoundEndedEventBlock extends FlowGraphEventBlock { /** * Input connection: The sound to monitor for when playback stops or ends. */ readonly sound: FlowGraphDataConnection<AbstractSound>; /** * Constructs a new FlowGraphSoundEndedEventBlock. * @param config - optional configuration for the block */ constructor(config?: IFlowGraphBlockConfiguration); /** * @internal */ _preparePendingTasks(context: FlowGraphContext): void; /** * @internal */ _executeEvent(_context: FlowGraphContext, _payload: any): boolean; /** * @internal */ _cancelPendingTasks(context: FlowGraphContext): void; /** * @returns class name of the block. */ getClassName(): string; }