@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.
29 lines (28 loc) • 1.1 kB
TypeScript
import { type IFlowGraphBlockConfiguration } from "../../../flowGraphBlock.js";
import { type FlowGraphContext } from "../../../flowGraphContext.js";
import { type FlowGraphDataConnection } from "../../../flowGraphDataConnection.js";
import { FlowGraphCachedOperationBlock } from "../flowGraphCachedOperationBlock.js";
import { type AbstractSound } from "../../../../AudioV2/abstractAudio/abstractSound.js";
/**
* @experimental
* A data block that checks whether an Audio V2 sound is currently playing.
*/
export declare class FlowGraphIsSoundPlayingBlock extends FlowGraphCachedOperationBlock<boolean> {
/**
* Input connection: The sound to check.
*/
readonly sound: FlowGraphDataConnection<AbstractSound>;
/**
* Constructs a new FlowGraphIsSoundPlayingBlock.
* @param config - optional configuration for the block
*/
constructor(config?: IFlowGraphBlockConfiguration);
/**
* @internal
*/
_doOperation(context: FlowGraphContext): boolean | undefined;
/**
* @returns class name of the block.
*/
getClassName(): string;
}