@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.
36 lines (35 loc) • 1.51 kB
TypeScript
/** This file must only contain pure code and pure imports */
import { type FlowGraphContext } from "../../../flowGraphContext.js";
import { type FlowGraphDataConnection } from "../../../flowGraphDataConnection.pure.js";
import { FlowGraphExecutionBlockWithOutSignal } from "../../../flowGraphExecutionBlockWithOutSignal.js";
import { type FlowGraphSignalConnection } from "../../../flowGraphSignalConnection.pure.js";
import { type IFlowGraphBlockConfiguration } from "../../../flowGraphBlock.js";
import { type AbstractSound } from "../../../../AudioV2/abstractAudio/abstractSound.js";
/**
* @experimental
* A block that pauses an Audio V2 sound. If the sound is already paused, resumes it.
*/
export declare class FlowGraphPauseSoundBlock extends FlowGraphExecutionBlockWithOutSignal {
/**
* Input connection: The sound to pause or resume.
*/
readonly sound: FlowGraphDataConnection<AbstractSound>;
/**
* Constructs a new FlowGraphPauseSoundBlock.
* @param config - optional configuration for the block
*/
constructor(config?: IFlowGraphBlockConfiguration);
/**
* @internal
*/
_execute(context: FlowGraphContext, _callingSignal: FlowGraphSignalConnection): void;
/**
* @returns class name of the block.
*/
getClassName(): string;
}
/**
* Register side effects for flowGraphPauseSoundBlock.
* Safe to call multiple times; only the first call has an effect.
*/
export declare function RegisterFlowGraphPauseSoundBlock(): void;